Merge pull request #1438 from chrisshyi/patch-1
Fix minor grammatical error
This commit is contained in:
commit
3008f26a41
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue