VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-stream-readable-ispaused-method/

⇱ Node.js Stream readable.isPaused() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js Stream readable.isPaused() Method

Last Updated : 12 Oct, 2021
The readable.isPaused() method is an inbuilt application programming interface of Stream module which is used to check the current operating state of the Readable streams. Syntax:
readable.isPaused()
Parameters: This method does not accept any parameters. Return Value: It returns true if the Readable state is paused otherwise returns false. Below examples illustrate the use of readable.isPaused() method in Node.js: Example 1: Output:
false
Example 2: Output:
true
Reference: https://nodejs.org/api/stream.html#stream_readable_ispaused
Comment

Explore