Node.js Stream readable.resume() Method
The readable.resume() method in a Readable Stream is used to paused data that can be resumed again and data starts flowing again.
Parameters: This method doesn’t accept any parameters.
Return Value: If this method is used then the data that was paused, starts flowing again.
Below examples illustrate the use of readable.resume() method in Node.js:
Data starts flowing again!! Hello!!!
Program ends!! Hello!!! No additional data will be displayed for 3 seconds. Now data starts flowing again.
However, you can see while running, that after the execution of pause() method, no further data will be displayed for 3 seconds.