Promise
↔ Object placeholder for async
operation & eventual Settled result
container for async
delivered value
container for a future value
proxy for unknown value from async action, used to defer return value (success or fail) to future
Promise Lifecycle
(model) Promise
process to start as Pending & end Settled into Fullfill || Reject
Promise Combinator
Promise.race()
to set Race Condition to return first Promise
to Settled
Promise.any()
Promise.allSettled()
References
Fetch API
↔ Web API to Data Fetch Web Resource viaasync
Promise
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 resultasync function
↔ JS Keyword to Declare function with Asynchronous Code to returnPromise
& allowawait
inside.json()
↔async
Chain Method to returnPromise
parse as JSON formatimport()
↔ JS Operator to Dynamically load Module viaPromise
Promise.race()
↔ to set Race Condition to return firstPromise
to Settled.then()
↔async
Chain Method to execute Callback on Fullfill, auto-passPromise
Value as arg.catch()
↔ Chain Callback to handlePromise
Error
propagationfs-extra
↔ Node Lib extendsfs
withPromise
-based functions that cut down on Boilerplate