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