Merge pull request #1438 from chrisshyi/patch-1

Fix minor grammatical error
This commit is contained in:
Ilya Kantor 2019-10-10 10:51:48 +03:00 committed by GitHub
commit 3008f26a41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,7 @@ new Promise(resolve => resolve(1))
JavaScript checks the object returned by `.then` handler in the line `(*)`: if it has a callable method named `then`, then it calls that method providing native functions `resolve`, `reject` as arguments (similar to executor) and waits until one of them is called. In the example above `resolve(2)` is called after 1 second `(**)`. Then the result is passed further down the chain. JavaScript checks the object returned by `.then` handler in the line `(*)`: if it has a callable method named `then`, then it calls that method providing native functions `resolve`, `reject` as arguments (similar to executor) and waits until one of them is called. In the example above `resolve(2)` is called after 1 second `(**)`. Then the result is passed further down the chain.
This feature allows to integrate custom objects with promise chains without having to inherit from `Promise`. This feature allows us to integrate custom objects with promise chains without having to inherit from `Promise`.
```` ````