mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
parent
2b35cb3f2f
commit
0dc2f02dfa
1 changed files with 2 additions and 2 deletions
|
@ -338,8 +338,8 @@ fn op_encoding_encode_into(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a [`CancelHandle`] resource that can be used to cancel invocations of certain ops.
|
/// Creates a [`CancelHandle`] resource that can be used to cancel invocations of certain ops.
|
||||||
#[op]
|
#[op(fast)]
|
||||||
pub fn op_cancel_handle(state: &mut OpState) -> ResourceId {
|
pub fn op_cancel_handle(state: &mut OpState) -> u32 {
|
||||||
state.resource_table.add(CancelHandle::new())
|
state.resource_table.add(CancelHandle::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue