Function polling

  • Description

    Poll the specified function and exit the poll if it meets the requirements.

    Parameters

    • checker: (() => boolean)

      The function to poll. Exit if return true.

        • (): boolean
        • Returns boolean

    • interval: number = 50

      The interval of polling.

    • timeout: number = 5000

      The timeout of polling.

    Returns Promise<void>

Generated using TypeDoc