effect-io-ai

Package: effect
Module: Stream

Stream.refineOrDie

Keeps some of the errors, and terminates the fiber with the rest

Signature

declare const refineOrDie: { <E, E2>(pf: (error: E) => Option.Option<E2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>; <A, E, R, E2>(self: Stream<A, E, R>, pf: (error: E) => Option.Option<E2>): Stream<A, E2, R>; }

Source

Since v2.0.0