This commit is contained in:
Ilya Kantor 2017-04-21 09:34:49 +02:00
parent 7a51c05ded
commit 0576ea79d8
18 changed files with 375 additions and 109 deletions

View file

@ -2,6 +2,13 @@
A promise is an object of the built-in `Promise` class. It has the meaning of the "delayed result".
The promise object has two inernal fields in it:
- `state` -- one of: "pending", "fulfilled", "rejected".
- `result` -- when `new Promise` is created.
The constructor syntax is:
```js