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 /cli/tools/test/fmt.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 'cli/tools/test/fmt.rs')
-rw-r--r-- | cli/tools/test/fmt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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"], |