Skip to content

@purista/core v2.0.5


PURISTA API / @purista/core / getTimeoutPromise

Function: getTimeoutPromise()

getTimeoutPromise<T>(fn, ttl): Promise<T>

Defined in: packages/core/src/helper/getTimeoutPromise.impl.ts:9

Type Parameters

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