3 ms·
One thing this doesn't touch on is the different handling of microtasks and macrotasks: https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/ h
by twic 9y ago
One thing this doesn't touch on is the different handling of microtasks and macrotasks:
https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/ https://jakearchibald.com/2015/tasks-microtasks-queues-and-s...
http://www.c-sharpcorner.com/article/overview-of-micro-tasks-in-knockoutjs/ http://www.c-sharpcorner.com/article/overview-of-micro-tasks...
- nevir 9y agoIt's very important that JS devs be aware of the distinction there too - especially as Promises gain traction
- eriknstr 9y ago>In what order should the logs appear? Firefox 53 produced a log that matched what I expected but then I ran it a few more times and then it happened in another order which I then read was the order they were supposed to appear. >Microsoft Edge, Firefox 40, iOS Safari and desktop Safari 8.0.8 log setTimeout before promise1 and promise2 - although it appears to be a race condition. This is really weird, as Firefox 39 and Safari 8.0.7 get it consistently right. So Firefox 39 may have gotten it consistently right on his machine, Firefox 40 did not on his machine and Firefox 53 still does not on my machine.
- Touche 9y agoAnd within macro and micro tasks there are several different queues that have different priorities.