O'Reilly logo
  • Kat Zhang thinks this is interesting:

Calling pause() does not cause the stream to switch back to non-flowing mode.


Cover of Node.js Design Patterns - Second Edition


Seems contradicting to Stream API documentation: The Readable can switch back to paused mode using one of the following:

  • If there are no pipe destinations, by calling the stream.pause() method.