summaryrefslogtreecommitdiff
path: root/std/manual.md
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-24 23:40:29 +0200
committerGitHub <noreply@github.com>2020-04-24 23:40:29 +0200
commit824329f0daa4dfada11ccc4c15a7db6c1886c45f (patch)
tree9cd2ca59c99ab6aaa781528fd91e0638d9024713 /std/manual.md
parent6a37e4426e686028c38d5e915d91e587c5966804 (diff)
BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (#4886)
Diffstat (limited to 'std/manual.md')
-rw-r--r--std/manual.md4
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" ] }
}