3 ms·
I think you're maybe referring to a broken `Promise` implementation. Here's a good article about how callbacks get scheduled: https://jakearchibald.com/2015/ta
by Rauchg 11y ago
I think you're maybe referring to a broken `Promise` implementation.
Here's a good article about how callbacks get scheduled:
https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/ https://jakearchibald.com/2015/tasks-microtasks-queues-and-s...
- wonnage 11y agoOh yeah, I don't think any real/production Promise implementation behaves this way - but it can be unclear why. As a beginner, you might expect Promise.resolve('foo').then(...) to happen immediately, as the quoted passage suggests; I was trying to get at why that's not the case.