diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-06-14 13:58:20 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-14 13:56:36 -0700 |
commit | 1361e302234b17ab8079107b134dfd0ddf288439 (patch) | |
tree | a38ce903ddbd89ee2dfd437bd8f984cb1d85695b /core/core.d.ts | |
parent | 3dff147d0ca1a2cd8d264d20a178d71cb38b1c4e (diff) |
Revert "Refactor dispatch handling (#2452)"
Due to performance regression:
https://github.com/denoland/deno/commit/dc60fe9f300043f191286ef804a365e16e455f87#commitcomment-33943711
This reverts commit dc60fe9f300043f191286ef804a365e16e455f87.
Diffstat (limited to 'core/core.d.ts')
-rw-r--r-- | core/core.d.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/core.d.ts b/core/core.d.ts index 0c530e343..b1d1ac57f 100644 --- a/core/core.d.ts +++ b/core/core.d.ts @@ -4,13 +4,15 @@ // Deno core. These are not intended to be used directly by runtime users of // Deno and therefore do not flow through to the runtime type library. -declare type MessageCallback = (promiseId: number, msg: Uint8Array) => void; +declare interface MessageCallback { + (msg: Uint8Array): void; +} declare interface DenoCore { dispatch( control: Uint8Array, zeroCopy?: ArrayBufferView | null - ): Uint8Array | null | number; + ): Uint8Array | null; setAsyncHandler(cb: MessageCallback): void; sharedQueue: { head(): number; |