524 B
524 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>