Waits for predicate to be truthy and resolves a Promise
Result type for the truthy value returned by the predicate
A predicate function that checks the condition, it should return either a truthy value or a falsy value
Options object (or (deprecated): a maximum wait interval, 5000 ms by default)
(deprecated) Interval to wait for between attempts, optional, 50 ms by default
A promise to return the given predicate's result, once it resolves with a truthy value
Default interval between attempts, in milliseconds
Default timeout, in milliseconds
Timeout that represents infinite wait time
A type that represents a falsy value
Options that allow to specify timeout or time interval between consecutive attempts
Returned value type, either a truthy value or a falsy value
The predicate type
A type that represents a Predicate's return value
A type that represents a truthy value
Generated using TypeDoc
This module implements a function that waits for a given predicate to be truthy. Relies on Promises and supports async/await.