This commit is contained in:
Jerry Smith 2018-08-18 21:17:04 +03:00 committed by GitHub
parent 62226efedc
commit 5380741f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ The properties `state` and `result` of the Promise object are internal. We can't
## Consumers: "then" and "catch"
A Promise object serves as a link between the executor (the "producing code" or "singer) and the consuming functions (the "fans"), which will receive the result or error. Consuming functions can be registered (subscribed) using the methods `.then` and `.catch`.
A Promise object serves as a link between the executor (the "producing code" or "singer") and the consuming functions (the "fans"), which will receive the result or error. Consuming functions can be registered (subscribed) using the methods `.then` and `.catch`.
The syntax of `.then` is: