Waits until all expectations are fulfilled or the timeout is reached.
- Xcode 7.2+
The amount of time within which all expectations must be fulfilled.
XCWaitblock to invoke when all expectations have been fulfilled or when the wait timeout is triggered. (Timeout is always treated as a test failure.)
This method creates a point of synchronization in the flow of a test. Only one
wait can be active at any given time, but multiple discrete sequences of “create expectations and wait for them to be fulfilled” can be chained together.