Handlers Executed as Microtasks
Discover how handlers are queued and executed as microtasks.
We'll cover the following
Assigning handlers to settled promises
A fulfillment, rejection, or settlement handler will still be executed even if it’s added after the promise is already settled. This allows us to add new fulfillment and rejection handlers at any time and guarantee that they’ll be called. For example, we have the following:
Get hands-on with 1400+ tech skills courses.