diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-09-06 23:08:37 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 23:08:37 +0530 |
commit | d2a408f452db1157a1e6a14810bd1f03fc431d9d (patch) | |
tree | 66c45829a78cb3c6cd6e875cca65ce26384fe50d /ext/web/timers.rs | |
parent | c0a684c14ed70717e18b528bb8f366eb593636a7 (diff) |
perf(runtime): short-circuit `queue_async_op` for Poll::Ready (#15773)
Diffstat (limited to 'ext/web/timers.rs')
-rw-r--r-- | ext/web/timers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/timers.rs b/ext/web/timers.rs index d9ceef875..f6b2cc9e7 100644 --- a/ext/web/timers.rs +++ b/ext/web/timers.rs @@ -93,7 +93,7 @@ pub fn op_timer_handle(state: &mut OpState) -> ResourceId { /// Waits asynchronously until either `millis` milliseconds have passed or the /// [`TimerHandle`] resource given by `rid` has been canceled. -#[op] +#[op(deferred)] pub async fn op_sleep( state: Rc<RefCell<OpState>>, millis: u64, |