Hyperlinkv0.8.0-beta.28

Sink

Sink.ignoreLeftoverconsteffect/Sink.ts:677
<A, In, L, E, R>(self: Sink<A, In, L, E, R>): Sink<A, In, never, E, R>

Drops leftovers produced by a sink.

Details

The sink result is preserved, but any leftover elements are discarded instead of being returned to downstream sink composition. This does not continue pulling additional elements from the upstream stream.

filtering
Source effect/Sink.ts:6772 lines
export const ignoreLeftover = <A, In, L, E, R>(self: Sink<A, In, L, E, R>): Sink<A, In, never, E, R> =>
  mapEnd(self, ([a]) => [a])