From f705906256f4a4d4ec262db64322c9fc3e5beb81 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Fri, 16 Feb 2024 08:35:51 -0700 Subject: 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. --- cli/tools/test/fmt.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli') diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs index b0b37b5c4..931caf147 100644 --- a/cli/tools/test/fmt.rs +++ b/cli/tools/test/fmt.rs @@ -271,6 +271,7 @@ pub const OP_DETAILS: phf::Map<&'static str, [&'static str; 2]> = phf_map! { "op_run_status" => ["get the status of a subprocess", "awaiting the result of a `Deno.Process#status` call"], "op_seek_async" => ["seek in a file", "awaiting the result of a `Deno.File#seek` call"], "op_signal_poll" => ["get the next signal", "un-registering a OS signal handler"], + "op_sleep_interval" => ["sleep for a duration", "cancelling a `setTimeout` or `setInterval` call"], "op_sleep" => ["sleep for a duration", "cancelling a `setTimeout` or `setInterval` call"], "op_stat_async" => ["get file metadata", "awaiting the result of a `Deno.stat` call"], "op_symlink_async" => ["create a symlink", "awaiting the result of a `Deno.symlink` call"], -- cgit v1.2.3