effect-io-ai

Package: effect
Module: Stream

Stream.orDieWith

Keeps none of the errors, and terminates the stream with them, using the specified function to convert the E into a defect.

Signature

declare const orDieWith: { <E>(f: (e: E) => unknown): <A, R>(self: Stream<A, E, R>) => Stream<A, never, R>; <A, E, R>(self: Stream<A, E, R>, f: (e: E) => unknown): Stream<A, never, R>; }

Source

Since v2.0.0