Waits for a group of expectations to be fulfilled.
- Xcode 8.3+
Waiters can be used with or without a delegate to respond to events such as completion, timeout, or invalid expectation fulfillment.
XCTest automatically conforms to the
XCTWaiter protocol and will automatically report timeouts and other unexpected events as test failures.
Waiters can be used without a delegate or any association with a test case instance. This allows test support libraries to provide convenience methods for waiting without having to pass test cases through those APIs.