mirror of
https://github.com/denoland/deno.git
synced 2024-12-02 17:01:14 -05:00
chore(ext/broadcast_channel): custom arity (#14199)
This commit is contained in:
parent
4fffc0af19
commit
71cbb8be70
2 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@
|
|||
dispatch(this, this[_name], new Uint8Array(data));
|
||||
|
||||
// Send to listeners in other VMs.
|
||||
defer(() => core.opAsync("op_broadcast_send", [rid, this[_name]], data));
|
||||
defer(() => core.opAsync("op_broadcast_send", rid, this[_name], data));
|
||||
}
|
||||
|
||||
close() {
|
||||
|
|
|
@ -68,7 +68,6 @@ where
|
|||
pub fn op_broadcast_unsubscribe<BC>(
|
||||
state: &mut OpState,
|
||||
rid: ResourceId,
|
||||
_buf: (),
|
||||
) -> Result<(), AnyError>
|
||||
where
|
||||
BC: BroadcastChannel + 'static,
|
||||
|
@ -81,7 +80,8 @@ where
|
|||
#[op]
|
||||
pub async fn op_broadcast_send<BC>(
|
||||
state: Rc<RefCell<OpState>>,
|
||||
(rid, name): (ResourceId, String),
|
||||
rid: ResourceId,
|
||||
name: String,
|
||||
buf: ZeroCopyBuf,
|
||||
) -> Result<(), AnyError>
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue