js-util

Home > rc-js-util > promiseDelay

promiseDelay() function

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>;

Parameters

Parameter Type Description
resolveWith T  
delay number (Optional)

Returns:

Promise<T>

Remarks

See promiseDelay().