- Preparing search index...
- The search index is not available
v0.4.0-beta
Function waitForPredicatePromise
- waitForPredicatePromise(predicate, seconds?): Promise<void>
-
Parameters
-
predicate: (() => Promise<boolean>)
-
- (): Promise<boolean>
-
Returns Promise<boolean>
-
seconds: number = 3
Returns Promise<void>
Block the execution flow till a promise Predicate becomes true.