Home > rc-js-util > promiseDelay
Returns a Promise
which will resolve to resolveWith
after a delay of delay
(in milliseconds).
Signature:
export declare function promiseDelay<T>(resolveWith: T, delay?: number): Promise<T>;
Parameter | Type | Description |
---|---|---|
resolveWith | T | |
delay | number | (Optional) |
Returns:
Promise<T>
See promiseDelay().