Calls fn until predicate(value) is true and returns that value. Throws TimeoutError when the time budget runs out (the message includes the last value's failure reason when the predicate never matched) and CancelledError on abort.
fn
predicate(value)
CancelledError
Calls
fnuntilpredicate(value)is true and returns that value. Throws TimeoutError when the time budget runs out (the message includes the last value's failure reason when the predicate never matched) andCancelledErroron abort.