A block to be called when a call to
wait has all of its expectations fulfilled, or times out.
- Xcode 7.2+
If the wait timed out or a failure was raised while waiting, the error's code will specify the type of failure. Otherwise,
XCTestfor a list of possible errors.