mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
core: add Deno.core.dispatchByName (#6395)
This commit adds alternate dispatch method to core JS API. "Deno.core.dispatchByName()" works like "Deno.core.dispatch()", but takes op name instead of op id as a first argument.
This commit is contained in:
parent
86448fd9aa
commit
79adc7b000
6 changed files with 27 additions and 41 deletions
|
@ -82,6 +82,11 @@ declare global {
|
|||
control: Uint8Array,
|
||||
...zeroCopy: ArrayBufferView[]
|
||||
): Uint8Array | null;
|
||||
dispatchByName(
|
||||
opName: string,
|
||||
control: Uint8Array,
|
||||
...zeroCopy: ArrayBufferView[]
|
||||
): Uint8Array | null;
|
||||
setAsyncHandler(opId: number, cb: (msg: Uint8Array) => void): void;
|
||||
sharedQueue: {
|
||||
head(): number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue