diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-06-01 15:35:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 15:35:06 +0900 |
| commit | 595700c993891ec8bf83f455a6602070ab8351ac (patch) | |
| tree | 64f292aafc9fac62909c81a43429f89590d3be56 /runtime | |
| parent | f8913680573505e45f0c094af1421f7a4abb4fb2 (diff) | |
feat: add FsWatcher interface (#10798)
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/js/40_fs_events.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js index a1a9877b4..48060e23a 100644 --- a/runtime/js/40_fs_events.js +++ b/runtime/js/40_fs_events.js @@ -33,11 +33,17 @@ } } + // TODO(kt3k): This is deprecated. Will be removed in v2.0. + // See https://github.com/denoland/deno/issues/10577 for details return(value) { core.close(this.rid); return Promise.resolve({ value, done: true }); } + close() { + core.close(this.rid); + } + [Symbol.asyncIterator]() { return this; } |
