Creates a waiter that waits on a group of expectations for up to the specified timeout.
SDK
- Xcode 8.3+
Framework
- XCTest
Declaration
class func wait(for expectations: [XCTest Expectation], timeout seconds: Time Interval) -> XCTWaiter.Result
Parameters
expectations
The expectations to wait for.
seconds
The amount of time within which all expectations must be fulfilled.
Discussion
May return early based on fulfillment of the waited on expectations. The waiter is discarded when the wait completes.