Swap-Aggregator-Subgraph/node_modules/pull-stream/docs/sinks/index.md
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

23 lines
431 B
Markdown

# Sinks
A Sink is a stream that is not readable.
You *must* have a sink at the end of a pipeline
for data to move towards.
You can only use _one_ sink per pipeline.
``` js
pull(source, through, sink)
```
See also:
* [Sources](../sources/index.md)
* [Throughs](../throughs/index.md)
## [drain](./drain.md)
## [reduce](./reduce.md)
## [concat](./collect.md)
## [collect](./collect.md)
## [onEnd](./on-end.md)
## [log](./log.md)