663 B
663 B
Home > @apextoaster/js-utils > waitFor
waitFor() function
Reject after a set number of attempts if the given predicate does not return true.
Signature:
export declare function waitFor(cb: PredicateC0, step: number, count: number): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
cb | PredicateC0 | |
step | number | |
count | number |
Returns:
Promise<void>
Exceptions
TimeoutError