effect-io-ai

Package: effect
Module: Channel

Channel.fromEffectDone

Creates a channel that evaluates an effect and uses its successful value as the channel’s done value without emitting any output elements.

Details

If the effect fails, the channel fails with the effect’s error.

Signature

declare const fromEffectDone: <A, E, R>(effect: Effect.Effect<A, E, R>) => Channel<never, Pull.ExcludeDone<E>, A, unknown, unknown, unknown, R>

Source

Since v4.0.0