Skip to content

Commit ca966e3

Browse files
destroying streams
1 parent bd429f8 commit ca966e3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ When you get stuck, keep in mind:
99
- Your use case can probably be "re-thought of" and applied to an existing solution for a similar problem
1010
- You can come here to ask for help, and I'll try my best to answer or get one
1111

12+
#### [Have a question?](https://github.com/stephenplusplus/stream-faqs/issues/new)
13+
14+
*If you find any of this information to be inaccurate or incomplete, feel free to contribute a PR!*
15+
1216
#### How can I make a paginated API request?
1317

1418
**Problem**
@@ -20,4 +24,12 @@ You need to pull down many results from a backend, but it limits the amount of r
2024
- https://github.com/timhudson/continue-stream
2125
- https://github.com/timhudson/pagination-stream
2226

23-
#### [Have a question?](https://github.com/stephenplusplus/stream-faqs/issues/new)
27+
#### How can I destroy all of the streams in a pipeline if one gets an error?
28+
29+
**Problem**
30+
31+
You have a bunch of streams piped together and one gets an error. The other streams and any listeners on them don't really know what happened and linger around without being properly destroyed.
32+
33+
**Solutions**
34+
- https://github.com/mafintosh/pump
35+
- https://github.com/mafintosh/pumpify

0 commit comments

Comments
 (0)