Module "wordpress-packages/real-queue/lib/utils/waitObject"
Functions
waitObject
- waitObject<T>(getObject: () => T, delayNextCheck?: number, maxTries?: number): Promise<T>
-
Type parameters
Parameters
-
getObject: () => T
-
Default value delayNextCheck: number = 500
-
Default value maxTries: number = 0
Returns Promise<T>
Wait for a given object which is calculated through a callback.