1
0
Fork 0
js-utils/docs/api/js-utils.deferuntil.md

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