summaryrefslogtreecommitdiff
path: root/ext/websocket/lib.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-09-06 23:08:37 +0530
committerGitHub <noreply@github.com>2022-09-06 23:08:37 +0530
commitd2a408f452db1157a1e6a14810bd1f03fc431d9d (patch)
tree66c45829a78cb3c6cd6e875cca65ce26384fe50d /ext/websocket/lib.rs
parentc0a684c14ed70717e18b528bb8f366eb593636a7 (diff)
perf(runtime): short-circuit `queue_async_op` for Poll::Ready (#15773)
Diffstat (limited to 'ext/websocket/lib.rs')
-rw-r--r--ext/websocket/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs
index 515f798ac..fad217585 100644
--- a/ext/websocket/lib.rs
+++ b/ext/websocket/lib.rs
@@ -420,7 +420,7 @@ pub async fn op_ws_send(
Ok(())
}
-#[op]
+#[op(deferred)]
pub async fn op_ws_close(
state: Rc<RefCell<OpState>>,
rid: ResourceId,