Version: 0.13.0
util/timeout_promise
Index
Interfaces
Functions
Functions
sleep
▸ sleep(ms
: number): Promise‹void›
Defined in util/timeout_promise.ts:23
Parameters:
Name | Type |
---|---|
ms | number |
Returns: Promise‹void›
timeoutPromise
▸ timeoutPromise<T>(ms
: number, promise
: Promise‹T›): Promise‹T›
Defined in util/timeout_promise.ts:9
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
ms | number |
promise | Promise‹T› |
Returns: Promise‹T›