@grow-codes/jaeger - v0.1.1
    Preparing search index...

    Function pollUntil

    • Calls fn until predicate(value) is true and returns that value. Throws TimeoutError when the time budget runs out (the message includes the last value's failure reason when the predicate never matched) and CancelledError on abort.

      Type Parameters

      • T

      Parameters

      • fn: (attempt: number) => Promise<T>
      • predicate: (value: T) => boolean
      • options: PollOptions = {}

      Returns Promise<T>