Event Loop
↔ (mechanism) to orchestrate Non-Blocking Concurrency Model by manageCallback Functions between Callback Queue& Call Stack, to await
execute
Microtask
Callback to defer fn after parent EC popped off Call Stack
Microtasks Queue
used to queue async promises, to defer execute until Call Stack empty
Source: developer.mozilla.org/en
Task
Callback in Task Queue to execute sequentially at Tick start until empty. Can enqueue more ♾ & execute in same Tick!
Tick
Each Event Loop cycle iteration
References
Browser Runtime
↔ JS Runtime Environ with JS Engine, Web API, Callback Queue & Event LoopConcurrency Model
↔ (mechanism) to achieve Concurrency for JS Engine via Event Loop, Callback Queue & Callback FunctionJS Engine
↔ Program to execute JS Source Code, consists of Call Stack, Heap, Callback Queue & Event LoopTick
↔ Each Event Loop cycle iteration