Files
node/lib
Alexis Campailla ace1009456 stream: emit 'pause' on nextTick
Readable.resume() schedules the resume operation onto the next tick,
whereas pause() has immediate effect. This means that in a sequence

  stream.resume();
  stream.pause();

.. the 'pause' event will be triggered before the resume operation
is performed.

For process.stdin, we are relying on the 'pause' event to stop reading
on the underlying handle. This fix ensures that reads are started and
stopped in the same order as resume() and pause() are called.

PR-URL: https://github.com/nodejs/node/pull/5776
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
2016-03-23 20:57:14 +01:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-03-21 15:48:51 -07:00
2016-03-21 15:48:51 -07:00
2016-03-15 09:25:35 -07:00
2016-03-20 11:49:02 +02:00
2016-01-31 19:16:09 +01:00
2016-03-21 15:48:51 -07:00
2016-03-17 23:20:12 -04:00
2016-03-21 12:35:12 -04:00
2015-01-31 23:47:29 -05:00