up
This commit is contained in:
parent
7a51c05ded
commit
0576ea79d8
18 changed files with 375 additions and 109 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue