© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Zhenyu
Thanks for this great article! Can I ask a question? if TaskQueue only has TaskA takes 4ms, TaskA call setTimeout(FuncA, 0), next step is RenderQueue or FuncA?
Nik
SWE@Meta, Whatsapp
The correct answer is that behaviour is not determined. (as we should know when render happens the last time).
e.g. if the render happens right before TaskA, then there is a high probability, that FuncA will be executed before.