Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

waitObject

  • waitObject<T>(getObject: () => T, delayNextCheck?: number, maxTries?: number): Promise<T>
  • Wait for a given object which is calculated through a callback.

    Type parameters

    • T

    Parameters

    • getObject: () => T
        • (): T
        • Returns T

    • Default value delayNextCheck: number = 500
    • Default value maxTries: number = 0

    Returns Promise<T>

Generated using TypeDoc