温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/unwatchFile
点击访问原文链接

Node fs.unwatchFile function | API Reference | Bun

Node fs.unwatchFile function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/unwatchFileFunwatchFile

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/unwatchFileFunwatchFile

function

fs.unwatchFilefunction unwatchFile(filename: PathLike,listener?: StatsListener): void;

Stop watching for changes on filename. If listener is specified, only that particular listener is removed. Otherwise, all listeners are removed, effectively stopping watching of filename.

Calling fs.unwatchFile() with a filename that is not being watched is a no-op, not an error.

Using watch is more efficient than fs.watchFile() and fs.unwatchFile(). fs.watch() should be used instead of fs.watchFile() and fs.unwatchFile() when possible.

@param listener

Optional, a listener previously attached using fs.watchFile()

function unwatchFile(filename: PathLike,listener?: BigIntStatsListener): void;

Stop watching for changes on filename. If listener is specified, only that particular listener is removed. Otherwise, all listeners are removed, effectively stopping watching of filename.

Calling fs.unwatchFile() with a filename that is not being watched is a no-op, not an error.

Using watch is more efficient than fs.watchFile() and fs.unwatchFile(). fs.watch() should be used instead of fs.watchFile() and fs.unwatchFile() when possible.

@param listener

Optional, a listener previously attached using fs.watchFile()

Referenced typestype PathLike = string | Buffer | URL

Valid types for path values in "fs".

type StatsListener = (curr: Stats, prev: Stats) => voidtype BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node fs.unwatchFile function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:fs.unwatchFile | Bun