Deno.FsWatcher
FsWatcher is returned by Deno.watchFs
function when you start watching the file system. You can iterate over this interface to get the file system events, and also you can stop watching the file system by calling .close()
method.
interface FsWatcher
extends AsyncIterable<FsEvent> {
readonly rid
: number;
[[Symbol.asyncIterator]]()
: AsyncIterableIterator<FsEvent>;
close()
: void;
return?(
value?: any)
: Promise<IteratorResult<FsEvent>>;
}
Extends
AsyncIterable<FsEvent>
Properties
readonly rid
: number
The resource id of the FsWatcher
.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.FsWatcher