From 824329f0daa4dfada11ccc4c15a7db6c1886c45f 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: BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (#4886) --- std/manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std') 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" ] } } -- cgit v1.2.3