StatWatcher.ref method | Node.js fs module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
StatWatcher/
refMref
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
StatWatcher/
refMref
method
fs.StatWatcher.refref(): this;
When called, requests that the Node.js event loop not exit so long as the fs.StatWatcher is active. Calling watcher.ref() multiple times will have no effect.
By default, all fs.StatWatcher objects are "ref'ed", making it normally unnecessary to call watcher.ref() unless watcher.unref() had been called previously.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →