Package: effect
Module: STM
Repeats this STM effect until its result satisfies the specified
predicate.
WARNING: repeatUntil uses a busy loop to repeat the effect and will
consume a thread until it completes (it cannot yield). This is because STM
describes a single atomic transaction which must either complete, retry or
fail a transaction before yielding back to the Effect runtime.
retryUntil instead if you don’t need to maintain transaction
state for repeats.Signature
declare const repeatUntil: { <A>(predicate: Predicate<A>): <E, R>(self: STM<A, E, R>) => STM<A, E, R>; <A, E, R>(self: STM<A, E, R>, predicate: Predicate<A>): STM<A, E, R>; }
Since v2.0.0