@jaffathecake why are microtasks needed? That was the one thing I didn't quite follow.
Right. Yielding back to the event loop *also* requires an empty stack, so that just falls out naturally.
-
-
The code for this has nice comments that document what's going on: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/bindings/Microtask.h?type=cs&l=41 …
New conversation -
-
-
Kinda, although you can have tasks that don't run any JavaScript. Eg if you queue a task to resolve a promise.
-
What happens in cases like this:https://twitter.com/vazac/status/960710568024911872 …
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.