Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.81k stars 598 forks source link

Allow using async/await in expect #1004

Closed younata closed 1 year ago

younata commented 1 year ago

Resolves https://github.com/Quick/Nimble/issues/1003

This changes Expectation into a protocol, and converts the old Expectation struct into SyncExpectation and AsyncExpectation. Expression is still synchronous, and toEventually is dropped for AsyncExpectations. Additionally, renamed the older Async methods to Polling to try to reduce confusion as to what toEventually actually does.

Updated documentation, both to explain what toEventually actually does, and to elaborate that Nimble supports async/await.