effect-io-ai

Package: effect
Module: STM

STM.retryWhile

Filters the value produced by this effect, retrying the transaction while the predicate returns true for the value.

Signature

declare const retryWhile: { <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>; }

Source

Since v2.0.0