Update text

This commit is contained in:
Stanislav (Stanley) Modrak 2022-06-16 18:13:04 +01:00 committed by GitHub
parent 556bd7ff38
commit 098f43f7ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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