【发布时间】:2020-07-18 23:55:51
【问题描述】:
有一个Deno.watch api 用于监视文件系统事件:
const watcher = Deno.watchFs("/");
for await (const event of watcher) {
console.log(">>>> event", event);
// { kind: "create", paths: [ "/foo.txt" ] }
}
但是在调用Deno.watch 之后如何unwatch?
【问题讨论】:
标签: deno