effect-io-ai

Package: effect
Module: Sink

Sink.fromEffect

Creates a sink that ignores upstream input and completes with the success value of the provided effect.

Details

If the effect fails, the sink fails with the same error.

Signature

declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => Sink<A, unknown, never, E, R>

Source

Since v2.0.0