mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
perf(runtime): short-circuit queue_async_op
for Poll::Ready (#15773)
This commit is contained in:
parent
c0a684c14e
commit
d2a408f452
15 changed files with 295 additions and 167 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue