1
0
Fork 0
js-utils/docs/api/js-utils.defer.md

546 B

Home > @apextoaster/js-utils > defer

defer() function

Resolve after a set amount of time.

Signature:

export declare function defer<T = undefined>(ms: number, val?: T): Promise<T>;

Parameters

Parameter Type Description
ms number
val T

Returns:

Promise<T>