0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00
deno/ext
Bartek Iwańczuk ffd3ed9b8a
fix(ext/web): improve timers resolution for 0ms timeouts (#19212)
This commit changes the implementation of `ext/web` timers, by using
"op_void_async_deferred" for timeouts of 0ms.

0ms timeout is meant to be run at the end of the event loop tick and
currently Tokio timers that we use to back timeouts have at least 1ms
resolution. That means that 0ms timeout actually take >1ms. This
commit changes that and runs 0ms timeout at the end of the event
loop tick.

One consequence is that "unrefing" a 0ms timer will actually keep
the event loop alive (which I believe actually makes sense, the test
we had only worked because the timeout took more than 1ms).

Ref https://github.com/denoland/deno/issues/19034
2023-05-22 14:09:31 +02:00
..
broadcast_channel chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
cache chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
console chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
crypto chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
fetch feat(unstable): add more options to Deno.createHttpClient (#17385) 2023-05-21 03:43:54 +02:00
ffi chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
fs chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
http feat(ext/http): ref/unref for server (#19197) 2023-05-19 15:14:40 -06:00
io chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
kv chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
napi chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
net chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
node fix(node): add http.Server.unref() (#19201) 2023-05-22 01:02:10 +02:00
tls chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
url chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
web fix(ext/web): improve timers resolution for 0ms timeouts (#19212) 2023-05-22 14:09:31 +02:00
webidl chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
websocket chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00
webstorage chore: forward v1.33.4 release commit to main (#19181) 2023-05-18 20:44:10 +02:00