diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-02-16 08:35:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 15:35:51 +0000 |
commit | f705906256f4a4d4ec262db64322c9fc3e5beb81 (patch) | |
tree | 1138630ebc1b10a2d0d71343568fa13f146bbfbe /ext/web/lib.rs | |
parent | e06934fe77cb7991fc2c767f221577a2e96506a7 (diff) |
chore(ext/web): refactor timer ops before landing op sanitizer (#22435)
Splitting the sleep and interval ops allows us to detect an interval
timer. We also remove the use of the `op_async_void_deferred` call.
A future PR will be able to split the op sanitizer messages for timers
and intervals.
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r-- | ext/web/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 3defbd74e..0601aff24 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -52,6 +52,7 @@ pub use crate::message_port::MessagePort; 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; @@ -86,6 +87,7 @@ deno_core::extension!(deno_web, op_now<P>, op_timer_handle, op_sleep, + op_sleep_interval, op_transfer_arraybuffer, stream_resource::op_readable_stream_resource_allocate, stream_resource::op_readable_stream_resource_allocate_sized, |