Open CPPAlien opened 4 years ago
The ECMAscript 2015 (ES6) specification requires tasks to run Promise reaction callbacks to form their own job queue called "PromiseJobs". ECMAscript and HTML specifications do not use the same language, so let's notionally equate ECMA's "Promise Job queue" with HTML task queue "B" in the browser - at least a different queue to the one used by timers. https://stackoverflow.com/questions/40880416/what-is-the-difference-between-event-loop-queue-and-job-queue
宏任务(Macrotask, Event queue)