diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 0eec63ab9f..85e32b70ae 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -338,8 +338,8 @@ fn op_encoding_encode_into( } /// Creates a [`CancelHandle`] resource that can be used to cancel invocations of certain ops. -#[op] -pub fn op_cancel_handle(state: &mut OpState) -> ResourceId { +#[op(fast)] +pub fn op_cancel_handle(state: &mut OpState) -> u32 { state.resource_table.add(CancelHandle::new()) }