This commit is contained in:
Alaa Bouayed 2019-04-22 16:23:57 +01:00 committed by GitHub
parent 3b14ed8185
commit 8ef9fd28dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ The call `.catch(f)` is a complete analog of `.then(null, f)`, it's just a short
### finally
Just like there's a finally clause in a regular `try {...} catch {...}`, there's `finally` in promises.
Just like there's a `finally` clause in a regular `try {...} catch {...}`, there's `finally` in promises.
The call `.finally(f)` is similar to `.then(f, f)` in the sense that it always runs when the promise is settled: be it resolve or reject.