Settled
↔ async
task complete
aka Settle
Fullfill
🎉Successfully resulted in a value (as expected)
Reject
💩Error during async task
Promise
will eventually Settled into either Fullfill or Reject
References
Promise Lifecycle
↔ (model)Promise
process to start as Pending & end Settled into Fullfill || Rejectawait
↔ JS Keyword to suspend execute JS code portion untilPromise
Settled & returns resultPromise
↔ Object placeholder forasync
operation & eventual Settled resultPromise.race()
↔ to set Race Condition to return firstPromise
to SettledAsynchronous Code
↔ Non-Blocking Code to defer execute, wait in Callback Queue & move to Call Stack once background task Settled