Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update stream.markdown
  • Loading branch information
iliakan committed Feb 9, 2016
commit 1a1a0f92ebafdb9fdc2bbd27cb29b1c4463e1d26
10 changes: 6 additions & 4 deletions doc/api/stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,13 @@ end

* Return: `Boolean`

This method returns whether or not the `readable` has been **explicitly**
paused by client code (using [`stream.pause()`][stream-pause] without a
corresponding [`stream.resume()`][stream-resume]).
This method returns whether or not the `readable` has been paused by client code including the following cases:

The `unpipe` call also makes the stream paused.
* If there are no pipe destinations, by calling the
[`stream.pause()`][stream-pause] method.
* If there are pipe destinations, by removing any [`'data'`][] event
Copy link
Copy Markdown
Member

@mcollina mcollina Apr 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all 'data' event handlers? Please check.

handlers, and removing all pipe destinations by calling the
[`stream.unpipe()`][] method.

```js
var readable = new stream.Readable
Expand Down