Skip to content
Buy me a coffee

Downstream

Defined in: src/stream/Gatherers.ts:21

The next stage as a gatherer sees it: push(element) emits, isRejecting() reports that it wants no more.

  • Downstream<T>

T

isRejecting(): boolean

Defined in: src/stream/Gatherer.ts:12

Returns true once push would no longer accept elements; check it before expensive work or pushing leftovers.

boolean

DownstreamType.isRejecting


push(element): boolean

Defined in: src/stream/Gatherer.ts:10

Sends element to the next stage.

T

boolean

false if the downstream wants no more elements (for example, a later limit was reached)

DownstreamType.push