1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

chore(ext/broadcast_channel): custom arity (#14199)

This commit is contained in:
Divy Srivastava 2022-04-04 15:18:29 +05:30 committed by GitHub
parent 797cf9cdd9
commit 6bb555b549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@
dispatch(this, this[_name], new Uint8Array(data)); dispatch(this, this[_name], new Uint8Array(data));
// Send to listeners in other VMs. // 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() { close() {

View file

@ -68,7 +68,6 @@ where
pub fn op_broadcast_unsubscribe<BC>( pub fn op_broadcast_unsubscribe<BC>(
state: &mut OpState, state: &mut OpState,
rid: ResourceId, rid: ResourceId,
_buf: (),
) -> Result<(), AnyError> ) -> Result<(), AnyError>
where where
BC: BroadcastChannel + 'static, BC: BroadcastChannel + 'static,
@ -81,7 +80,8 @@ where
#[op] #[op]
pub async fn op_broadcast_send<BC>( pub async fn op_broadcast_send<BC>(
state: Rc<RefCell<OpState>>, state: Rc<RefCell<OpState>>,
(rid, name): (ResourceId, String), rid: ResourceId,
name: String,
buf: ZeroCopyBuf, buf: ZeroCopyBuf,
) -> Result<(), AnyError> ) -> Result<(), AnyError>
where where