From f0f3b38e7d47df09a60ad57bef0a1c556349ebd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 24 Apr 2020 23:40:29 +0200 Subject: [PATCH] BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (denoland/deno#4886) --- manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual.md b/manual.md index e80a5687240d..70610e19f0ba 100644 --- a/manual.md +++ b/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" ] } }