effect-io-ai

Package: effect
Module: Stream

Stream.orElseFail

Fails with given error in case this one fails with a typed error.

See also Stream.catchAll.

Signature

declare const orElseFail: { <E2>(error: LazyArg<E2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2, R>; <A, E, R, E2>(self: Stream<A, E, R>, error: LazyArg<E2>): Stream<A, E2, R>; }

Source

Since v2.0.0