Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/cookie-consent-web-client/src/utils/promiseTimeout"

Index

Functions

Functions

promiseTimeout

  • promiseTimeout<PromiseValue>(promise: Promise<PromiseValue>, ms: number): Promise<PromiseValue>
  • Let a Promise be rejected after a given amount of time.

    Type parameters

    • PromiseValue: any

    Parameters

    • promise: Promise<PromiseValue>
    • ms: number

    Returns Promise<PromiseValue>

Generated using TypeDoc