-
Event-loop: Microtasks vs. MacrotasksDEV/Javascript 2021. 6. 20. 19:21
https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide/In_depth
https://javascript.info/event-loop
Immediately after every macrotask, the engine executes all tasks from microtask queue, prior to running any other macrotasks or rendering or anything else.
https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model
https://html.spec.whatwg.org/multipage/webappapis.html#event-loop
An event loop has one or more task queues. A task queue is a set of tasks.
Task queues are sets, not queues, because step one of the event loop processing model grabs the first runnable task from the chosen queue, instead of dequeuing the first task.
-> Task queue는 자료구조 queue가 아니라 set!
macro-micro 보니까 DSLR 카메라 렌즈가 생각난다. (음?)