Hyperlinkv0.8.0-beta.28

Sink

Sink.drainconsteffect/Sink.ts:694
Sink<void, unknown, never, never, never>

Consumes and ignores all stream inputs.

When to use

Use to consume all upstream input and complete with void when the input values and any aggregate result are not needed.

constructorscountforEach
Source effect/Sink.ts:6946 lines
export const drain: Sink<void, unknown> = fromTransform((upstream) =>
  Pull.catchDone(
    Effect.forever(upstream, { disableYield: true }),
    () => endVoid
  )
)
Referenced by 2 symbols