Module "frontend-packages/cookie-consent-web-client/src/utils/promiseTimeout"
Functions
promiseTimeout
- promiseTimeout<PromiseValue>(promise: Promise<PromiseValue>, ms: number): Promise<PromiseValue>
-
Type parameters
Parameters
-
promise: Promise<PromiseValue>
-
ms: number
Returns Promise<PromiseValue>
Let a
Promise
be rejected after a given amount of time.