Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: note that stream.pause is advisory
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and bnoordhuis committed Apr 17, 2012
1 parent 70005be commit 5bc07cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/api/stream.markdown
Expand Up @@ -57,7 +57,13 @@ Makes the data event emit a string instead of a `Buffer`. `encoding` can be

### stream.pause()

Pauses the incoming `'data'` events.
Issues an advisory signal to the underlying communication layer, requesting
that no further data be sent until `resume()` is called.

Note that, due to the advisory nature, certain streams will not be paused
immediately, and so `'data'` events may be emitted for some indeterminate
period of time even after `pause()` is called. You may wish to buffer such
`'data'` events.

### stream.resume()

Expand Down

0 comments on commit 5bc07cc

Please sign in to comment.