This commit is contained in:
Ilya Kantor 2019-09-02 21:58:47 +03:00
parent 1efa9c7fe8
commit 427fbea180
4 changed files with 10 additions and 11 deletions

View file

@ -105,7 +105,7 @@ Also, `resolve`/`reject` expect only one argument (or none) and will ignore addi
````
```smart header="Reject with `Error` objects"
In case something goes wrong, we must call `reject`. That can be done with any type of argument (just like `resolve`). But it is recommended to use `Error` objects (or objects that inherit from `Error`). The reasoning for that will soon become apparent.
In case something goes wrong, the executor should call `reject`. That can be done with any type of argument (just like `resolve`). But it is recommended to use `Error` objects (or objects that inherit from `Error`). The reasoning for that will soon become apparent.
```
````smart header="Immediately calling `resolve`/`reject`"