Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/infrastructure/HtmlUtils"

Index

Functions

Functions

pollUntil

  • pollUntil(callback: function, interval?: number, timeout?: number): Promise<__type>
  • Polls until a certain criteria is met, or a timeout occurs.

    Parameters

    • callback: function

      The function used to check if a condition is met.

        • (): boolean
        • Returns boolean

    • Optional interval: number

      The fequency with which to poll in milliseconds.

    • Optional timeout: number

      The total amount of time that will be waited before timing out, in milliseconds.

    Returns Promise<__type>