Hyperlinkv0.8.0-beta.28

Sink

Sink.fromEffectconsteffect/Sink.ts:449
<A, E, R>(effect: Effect.Effect<A, E, R>): Sink<A, unknown, never, E, R>

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.

constructors
Source effect/Sink.ts:4493 lines
export const fromEffect = <A, E, R>(
  effect: Effect.Effect<A, E, R>
): Sink<A, unknown, never, E, R> => fromEffectEnd(Effect.map(effect, (a) => [a]))
Referenced by 1 symbols