effect-io-ai

Package: effect
Module: TSet

TSet.takeSomeSTM

Takes all matching values, or retries until there is at least one.

Signature

declare const takeSomeSTM: { <A, B, E, R>(pf: (a: A) => STM.STM<B, Option.Option<E>, R>): (self: TSet<A>) => STM.STM<[B, ...Array<B>], E, R>; <A, B, E, R>(self: TSet<A>, pf: (a: A) => STM.STM<B, Option.Option<E>, R>): STM.STM<[B, ...Array<B>], E, R>; }

Source

Since v2.0.0