diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-03-01 11:15:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 11:15:18 -0700 |
commit | 736b91edd002ae34082c473b37249f9256a6ba32 (patch) | |
tree | d08c1dfde5777fef622750b166bcf4dc947d22ba /ext/web/lib.rs | |
parent | 7ac040833025bf234dec485ddaa6c459b25d2196 (diff) |
perf(cli): use new deno_core timers (#22569)
Improves #19100
Fixes #20356
Replaces #20428
Changes made in deno_core to support this:
- [x] Errors must be handled in setTimeout callbacks
- [x] Microtask ordering is not-quite-right
- [x] Timer cancellation must be checked right before dispatch
- [x] Timer sanitizer
- [x] Move high-res timer to deno_core
- [x] Timers need opcall tracing
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r-- | ext/web/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 0601aff24..332102fcc 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -2,7 +2,6 @@ mod blob; mod compression; -mod hr_timer_lock; mod message_port; mod stream_resource; mod timers; @@ -50,10 +49,8 @@ use crate::message_port::op_message_port_recv_message; pub use crate::message_port::JsMessageData; pub use crate::message_port::MessagePort; +use crate::timers::op_defer; use crate::timers::op_now; -use crate::timers::op_sleep; -use crate::timers::op_sleep_interval; -use crate::timers::op_timer_handle; use crate::timers::StartTime; pub use crate::timers::TimersPermission; @@ -85,9 +82,7 @@ deno_core::extension!(deno_web, compression::op_compression_write, compression::op_compression_finish, op_now<P>, - op_timer_handle, - op_sleep, - op_sleep_interval, + op_defer, op_transfer_arraybuffer, stream_resource::op_readable_stream_resource_allocate, stream_resource::op_readable_stream_resource_allocate_sized, |