@camunda8/orchestration-cluster-api
    Preparing search index...

    Function eventually

    • Poll effect on the Effect Clock until predicate holds, timing out to EventualConsistencyTimeout once waitUpTo elapses. Because it uses the Effect Clock (not Date.now/setTimeout), TestClock.adjust advances it deterministically in tests — no real-clock burn.

      Type Parameters

      • A
      • E
      • R

      Parameters

      • effect: Effect<A, E, R>
      • predicate: (a: A) => boolean
      • opts: { interval?: Input; waitUpTo: Input }

      Returns Effect<A, EventualConsistencyTimeout | E, R>