summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/web/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/lib.rs b/ext/web/lib.rs
index 0eec63ab9..85e32b70a 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())
}