Skip to content

Commit

Permalink
stream-events
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Aug 21, 2015
1 parent d5db2aa commit 938887a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ When you get stuck, keep in mind:

*If you find any of this information to be inaccurate or incomplete, feel free to contribute a PR!*

<a name="paginate"></a>
#### How can I make a paginated API request?

**Problem**
Expand All @@ -24,6 +25,7 @@ You need to pull down many results from a backend, but it limits the amount of r
- https://github.com/timhudson/continue-stream
- https://github.com/timhudson/pagination-stream

<a name="destroy"></a>
#### How can I destroy all of the streams in a pipeline if one gets an error?

**Problem**
Expand All @@ -34,6 +36,7 @@ You have a bunch of streams piped together and one gets an error. The other stre
- https://github.com/mafintosh/pump
- https://github.com/mafintosh/pumpify

<a name="concat"></a>
#### How can I just get all of the results when they're done coming in?

**Problem**
Expand All @@ -43,6 +46,7 @@ You have a source readable stream but don't really want to do anything stream-y
**Solution**
- https://github.com/maxogden/concat-stream

<a name="duplexify"></a>
#### How can I asynchronously assign a stream after one has already been created?

**Problem**
Expand All @@ -51,3 +55,14 @@ You want to make an API request but have to fetch an access token first. If you

**Solution**
- https://github.com/mafintosh/duplexify

<a name="events"></a>
#### How do I know when a stream is first written to or read from?

**Problem**

Since it's possible for you (or a user of your library) to create a stream, but then never connect it to anything, or not run it for an unknown amount of time, you might want to wait as long as possible to do something async.

**Solution**
- https://github.com/stephenplusplus/stream-events
- Note: works well with the [duplexify problem](#duplexify).

0 comments on commit 938887a

Please sign in to comment.