Skip to content

Commit

Permalink
BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (denoland/d…
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and caspervonb committed Jan 31, 2021
1 parent 2452304 commit f0f3b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] }
}
Expand Down

0 comments on commit f0f3b38

Please sign in to comment.