Update text
This commit is contained in:
parent
556bd7ff38
commit
098f43f7ba
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ new Promise((resolve, reject) => {
|
|||
That said, `finally(f)` isn't exactly an alias of `then(f,f)` though. There are few subtle differences:
|
||||
|
||||
1. A `finally` handler has no arguments. In `finally` we don't know whether the promise is successful or not. That's all right, as our task is usually to perform "general" finalizing procedures.
|
||||
2. A `finally` handler "passes" the result or error further to subsequent handlers.
|
||||
2. A `finally` handler "passes through" the result or error to the next handler.
|
||||
|
||||
For instance, here the result is passed through `finally` to `then`:
|
||||
```js run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue