An incident
- Start with task(macro task) (usually start with script script)
- Sweep all microtasks encountered during the task run
- Find the next task
Microtask
- Promise
- process.nextTick
node
When a Mirotask is encountered during the execution of an event, it is stored in a MicroTask queue and executed after all synchronization tasks in the task are completed
task
- I/O
- setTimeout
- setInterval
- requestAnimationFrame
web
- setImmediate
node