Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.FsWatcher

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.FsWatcher
implements AsyncIterable<FsEvent>, Disposable
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { FsWatcher } = Deno;

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

Properties

readonly
deprecated
rid: number

The resource id.

Methods

close(): void

Stops watching the file system and closes the watcher resource.

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

Stops watching the file system and closes the watcher resource.

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