685 B
685 B
Home > @apextoaster/js-utils > deferUntil
deferUntil() function
Resolve if cb
returns true within max
tries, otherwise reject with a TimeoutError
.
Signature:
export declare function deferUntil(cb: PredicateC0, step: number, max: number): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
cb | PredicateC0 | |
step | number | |
max | number |
Returns:
Promise<void>
Exceptions
TimeoutError