summaryrefslogtreecommitdiff
path: root/cli/js/fs_events.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/fs_events.ts')
-rw-r--r--cli/js/fs_events.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/fs_events.ts b/cli/js/fs_events.ts
index a4deff48a..b549b3d4d 100644
--- a/cli/js/fs_events.ts
+++ b/cli/js/fs_events.ts
@@ -1,6 +1,5 @@
// Copyright 2019 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts";
-import * as dispatch from "./dispatch.ts";
import { close } from "./files.ts";
export interface FsEvent {
@@ -13,11 +12,11 @@ class FsEvents implements AsyncIterableIterator<FsEvent> {
constructor(paths: string[], options: { recursive: boolean }) {
const { recursive } = options;
- this.rid = sendSync(dispatch.OP_FS_EVENTS_OPEN, { recursive, paths });
+ this.rid = sendSync("op_fs_events_open", { recursive, paths });
}
async next(): Promise<IteratorResult<FsEvent>> {
- return await sendAsync(dispatch.OP_FS_EVENTS_POLL, {
+ return await sendAsync("op_fs_events_poll", {
rid: this.rid
});
}