diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-09-09 18:54:42 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-10 00:14:28 -0400 |
commit | 3afc0b84823581adfc1aa432ab8973afa74346bd (patch) | |
tree | e459fd22a272bc3914ab0c5f13d67941ce22723e /js/timers.ts | |
parent | e2a285b871132f65f429fdbb7d5628a104f68e9a (diff) |
fbs_util.ts -> dispatch.ts
And send() -> sendSync()
Diffstat (limited to 'js/timers.ts')
-rw-r--r-- | js/timers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/timers.ts b/js/timers.ts index ee95f7093..42be96d91 100644 --- a/js/timers.ts +++ b/js/timers.ts @@ -3,7 +3,7 @@ import { assert } from "./util"; import * as util from "./util"; import * as fbs from "gen/msg_generated"; import { flatbuffers } from "flatbuffers"; -import { send, sendAsync } from "./fbs_util"; +import { sendSync, sendAsync } from "./dispatch"; let nextTimerId = 1; @@ -93,6 +93,6 @@ export function clearTimer(id: number) { fbs.TimerClear.startTimerClear(builder); fbs.TimerClear.addId(builder, id); const msg = fbs.TimerClear.endTimerClear(builder); - const res = send(builder, fbs.Any.TimerClear, msg); + const res = sendSync(builder, fbs.Any.TimerClear, msg); assert(res == null); } |