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
Copy file name to clipboardExpand all lines: 1-js/11-async/03-promise-chaining/article.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -102,9 +102,9 @@ In practice we rarely need multiple handlers for one promise. Chaining is used m
102
102
103
103
## Returning promises
104
104
105
-
Normally, a value returned by a `.then` handler is immediately passed to the next handler. But there's an exception.
105
+
A handler, used in `.then(handler)` may create and return a promise.
106
106
107
-
If the returned value is a promise, then the further execution is suspended until it settles. After that, the result of that promise is given to the next `.then` handler.
107
+
In that case further handlers wait till it settles, and then get its result.
0 commit comments