2 ms·
It doesn't, as promise resolution and execution is scheduled as new tasks on the main thread, which are only ever run if the currently executing piece of code f
by kuschku 6y ago
It doesn't, as promise resolution and execution is scheduled as new tasks on the main thread, which are only ever run if the currently executing piece of code finishes.
That's pretty much identical between IO, setTimeout/setInterval and requestAnimationFrame