diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-24 23:40:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 23:40:29 +0200 |
commit | 824329f0daa4dfada11ccc4c15a7db6c1886c45f (patch) | |
tree | 9cd2ca59c99ab6aaa781528fd91e0638d9024713 /std/manual.md | |
parent | 6a37e4426e686028c38d5e915d91e587c5966804 (diff) |
BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (#4886)
Diffstat (limited to 'std/manual.md')
-rw-r--r-- | std/manual.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/manual.md b/std/manual.md index e80a56872..70610e19f 100644 --- a/std/manual.md +++ b/std/manual.md @@ -470,8 +470,8 @@ The above for-await loop exits after 5 seconds when sig.dispose() is called. To poll for file system events: ```ts -const iter = Deno.fsEvents("/"); -for await (const event of iter) { +const watcher = Deno.watchFs("/"); +for await (const event of watcher) { console.log(">>>> event", event); // { kind: "create", paths: [ "/foo.txt" ] } } |