Re:Rust’s async isn’t colored
by _flux on Friday March 12, 2021 @04:27AM
(#26433766)
Does this actually work, though? I would expect it to fail similarly as this fails (note, may hang your browser or a tab, depending on your browser):
Edited the original message with reversed arguments to setTimeout; doesn't seem to affect the results though. Really need to love the complete lack of error messages though..
[ Parent
| on HN ]
It doesn't, as promise resolution and execution is scheduled as new tasks on the main thread, which are only ever run if the currently executing piece of code finishes.
That's pretty much identical between IO, setTimeout/setInterval and requestAnimationFrame