← Back to index
interface Deno.FsWatcher
extends AsyncIterable<FsEvent>

Returned by Deno.watchFs. It is an async iterator yielding up system events. To stop watching the file system by calling .close() method.

Properties

🔗
rid: number

The resource id.

Methods

🔗
close(): void

Stops watching the file system and closes the watcher resource.

🔗
return(value?: any): Promise<IteratorResult<FsEvent>>

Stops watching the file system and closes the watcher resource.

🔗
[[Symbol.asyncIterator]](): AsyncIterableIterator<FsEvent>