Function waitFor

  • Wait until the conditionCheck function return value evaluates to true.

    Parameters

    • conditionCheck: (() => any)

      A function with no arguments to check if the desired conditions are currently met. The return value will be evaluated to boolean.

        • (): any
        • Returns any

    • Optional frequency: number = 100

      How often should we check? Defaults to 100ms.

    Returns Promise<void>

    A promise that will be resolved once the conditionCheck function returns true or a truthy value

Generated using TypeDoc