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