Javascript API to explicitly add micro tasks or macro tasks
问题 From my global understanding of how javascript virtual machines works, i can clearly see that the concept of micro task / macro task play a big role. Here is what i understand about that: A VM 'turn' is the fact of pulling ONE macro task out of the VM macro task queue, and execute it. During a VM turn, micro tasks can be added to the micro tasks queue of the current macro task. Micro tasks can push other micro tasks to the micro tasks queue of the current macro task. A VM turn will end when