You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that we didn’t really have to do anything to make the adoption of foreign Promises work. That’s because our then implementation already knows how to wrap a foreign Promise, and when merely wraps then.
then implementation is not aware of wrapping foreign promise, resolve is.
defer.resolve(value) knows if the value being passed is a thenable (foreing promise) and waits until the foregin promise is resolved before resolving itself.
The text was updated successfully, but these errors were encountered:
then
implementation is not aware of wrapping foreign promise,resolve
is.defer.resolve(value)
knows if the value being passed is a thenable (foreing promise) and waits until the foregin promise is resolved before resolving itself.The text was updated successfully, but these errors were encountered: