Readable.resume method | Node.js stream module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:stream/
default/
Readable/
resumeMresume
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:stream/
default/
Readable/
resumeMresume
method
stream.default.Readable.resume {
console.log('Reached the end, but did not read anything.');
});
```
The `readable.resume()` method has no effect if there is a `'readable'` event listener." data-algolia-static="false" data-algolia-merged="false" data-type="Method">
resume(): this;
The readable.resume() method causes an explicitly paused Readable stream to resume emitting 'data' events, switching the stream into flowing mode.
The readable.resume() method can be used to fully consume the data from a stream without actually processing any of that data:
getReadableStreamSomehow()
.resume()
.on('end', () => {
console.log('Reached the end, but did not read anything.');
});
The readable.resume() method has no effect if there is a 'readable' event listener.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →