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

26 lines
524 B
Markdown
Raw Normal View History

2020-03-29 13:43:52 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [defer](./js-utils.defer.md)
## defer() function
Resolve after a set amount of time.
<b>Signature:</b>
```typescript
export declare function defer<T = undefined>(ms: number, val?: T): Promise<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| ms | number | |
| val | T | |
2020-03-29 13:43:52 +00:00
<b>Returns:</b>
Promise&lt;T&gt;
2020-03-29 13:43:52 +00:00