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.
Extends
Section titled “Extends”Downstream<T>
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”isRejecting()
Section titled “isRejecting()”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.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”DownstreamType.isRejecting
push()
Section titled “push()”push(
element):boolean
Defined in: src/stream/Gatherer.ts:10
Sends element to the next stage.
Parameters
Section titled “Parameters”element
Section titled “element”T
Returns
Section titled “Returns”boolean
false if the downstream wants no more elements (for example, a later limit was reached)
Inherited from
Section titled “Inherited from”DownstreamType.push