diff options
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, |