mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
Refactor dispatch handling (#2452)
Promise id is now created in core and passed back to JS.
This commit is contained in:
parent
fdd2eb5383
commit
dc60fe9f30
18 changed files with 667 additions and 709 deletions
7
core/libdeno/libdeno.d.ts
vendored
7
core/libdeno/libdeno.d.ts
vendored
|
@ -12,14 +12,13 @@ interface EvalErrorInfo {
|
|||
thrown: any;
|
||||
}
|
||||
|
||||
declare interface MessageCallback {
|
||||
(msg: Uint8Array): void;
|
||||
}
|
||||
declare type MessageCallbackInternal = (msg: Uint8Array) => void;
|
||||
|
||||
declare interface DenoCore {
|
||||
recv(cb: MessageCallback): void;
|
||||
recv(cb: MessageCallbackInternal): void;
|
||||
|
||||
send(
|
||||
cmdId: number,
|
||||
control: null | ArrayBufferView,
|
||||
data?: ArrayBufferView
|
||||
): null | Uint8Array;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue