We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7138e9 commit 89abe86Copy full SHA for 89abe86
lib/_stream_readable.js
@@ -738,8 +738,7 @@ Readable.prototype.pause = function() {
738
if (false !== this._readableState.flowing) {
739
debug('pause');
740
this._readableState.flowing = false;
741
- // Emit 'pause' on next tick as we do for 'resume'
742
- process.nextTick(() => this.emit('pause'));
+ this.emit('pause');
743
}
744
return this;
745
};
0 commit comments