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

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