Skip to content

unwatchFile

unwatchFile(this, path, listener?): void

Defined in: src/node/async.ts:657

Stop watching for changes on a file.

If the listener is specified, only that particular listener is removed. If no listener is specified, all listeners are removed, and the file is no longer watched.

unknown

PathLike

The path to the file to stop watching.

(curr, prev) => void

Optional listener to remove.

void