What was the motivation to make Promise
with higher priority than normal tasks
?
- We can make callback hell with Promises also.
- We can make non-blocking requests with
setTimeout(nonBlockingRequest) // zero timeout
.
So why fetch
, new Promise
should run before setTimeout(_, 0)
?