553 B
553 B
Home > @apextoaster/js-utils > deferValue
deferValue() function
Resolve with the given value, after a set amount of time.
Signature:
export declare function deferValue<T>(ms: number, val: T): Promise<T>;
Parameters
Parameter | Type | Description |
---|---|---|
ms | number | |
val | T |
Returns:
Promise<T>