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