images to svg
This commit is contained in:
parent
a31e881856
commit
3ba28aa104
734 changed files with 11682 additions and 245 deletions
|
@ -38,7 +38,7 @@ When the executor finishes the job, it should call one of the functions that it
|
|||
- sets `state` to `"rejected"`,
|
||||
- sets `result` to `error`.
|
||||
|
||||

|
||||

|
||||
|
||||
Later we'll see how these changes become known to "fans".
|
||||
|
||||
|
@ -60,7 +60,7 @@ We can see two things by running the code above:
|
|||
|
||||
After one second of "processing" the executor calls `resolve("done")` to produce the result:
|
||||
|
||||

|
||||

|
||||
|
||||
That was an example of a successful job completion, a "fulfilled promise".
|
||||
|
||||
|
@ -73,7 +73,7 @@ let promise = new Promise(function(resolve, reject) {
|
|||
});
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
To summarize, the executor should do a job (something that takes time usually) and then call `resolve` or `reject` to change the state of the corresponding Promise object.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue