๐Promise
Last updated
Last updated
โญ๏ธ ES6 (2015) the future result of an async operation.
if we have๏ผ
we say p is๏ผ
resolved if onResolved() is called.
fulfilled if onResolved() returns a non-Promise value.
rejected if onRejected()
is called.
settled if it's fulfilled or rejected.
pending if it's neither fulfilled nor rejected.
Any settled Promise has an associated value , which won't change.