PURISTA API / @purista/core / getTimeoutPromise
Function: getTimeoutPromise()
getTimeoutPromise<
T>(fn,ttl):Promise<T>
Defined in: packages/core/src/helper/getTimeoutPromise.impl.ts:10
Type Parameters
T
T
Parameters
fn
Promise<T>
the promise which should get a timeout
ttl
number = 30000
the timeout in ms
Returns
Promise<T>
Default
ts
30000