- Preparing search index...
- The search index is not available
polykey
- poll<T, E>(f, condition, interval?, timeout?): Promise<T>
-
Parameters
-
f: (() => T | PromiseLike<T>)
-
- (): T | PromiseLike<T>
-
Returns T | PromiseLike<T>
-
condition: {
(e, result?): boolean;
(e, result): boolean;
}
-
- (e, result?): boolean
-
Parameters
-
e: E
-
Optional
result: undefined
Returns boolean
- (e, result): boolean
-
Returns boolean
-
interval: number = 1000
-
Optional
timeout: number
Returns Promise<T>
Poll execution and use condition to accept or reject the results