Function retryTimeOut

  • Calls the handle repeatedly until the timeout is reached, whereas the time needed is not absolute in order to enable debugging, only the intervals are added.

    Type Parameters

    • T

    Parameters

    • handle: (() => false | T)

      return false in order to reschedule the check, return something else in order to schedule a retry

        • (): false | T
        • Returns false | T

    • interval: number = 1
    • timeout: number = 20

      use -1 to run infinitely

    Returns Promise<T>

    what the handle returns