Update article.md
This commit is contained in:
parent
3f338a6f08
commit
a5d4d5fa98
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ The idea is that the result is passed through the chain of `.then` handlers.
|
||||||
|
|
||||||
Here the flow is:
|
Here the flow is:
|
||||||
1. The initial promise resolves in 1 second `(*)`,
|
1. The initial promise resolves in 1 second `(*)`,
|
||||||
2. Then the `.this` handler is called `(**)`.
|
2. Then the `.then` handler is called `(**)`.
|
||||||
3. The value that it returns is passed to the next `.this` handler `(***)`
|
3. The value that it returns is passed to the next `.then` handler `(***)`
|
||||||
4. ...and so on.
|
4. ...and so on.
|
||||||
|
|
||||||
As the result is passed along the chain of handlers, we can see a sequence of `alert` calls: `1` -> `2` -> `4`.
|
As the result is passed along the chain of handlers, we can see a sequence of `alert` calls: `1` -> `2` -> `4`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue