Type Alias

XCWaitCompletionHandler

A block to be called when a call to waitForExpectationsWithTimeout:handler: has all of its expectations fulfilled, or times out.

Declaration

typedef void (^XCWaitCompletionHandler)(NSError *error);

Parameters

error

If the wait timed out or a failure was raised while waiting, the error's code will specify the type of failure. Otherwise, error will be nil. See XCTestErrorCode for a list of possible errors.

See Also

Waiting for Expectations

- waitForExpectations:timeout:

Waits on a group of expectations for up to the specified timeout.

- waitForExpectations:timeout:enforceOrder:

Waits on an array of expectations and specifies whether they must be fulfilled in the given order.

- waitForExpectationsWithTimeout:handler:

Waits until all expectations are fulfilled or the timeout is reached.

XCTestErrorCode

Error codes for errors that can occur while waiting for expectations to be fulfilled.

XCTestErrorDomain

Error domain for errors that can occur while waiting for expectations to be fulfilled.