minor
This commit is contained in:
parent
1efa9c7fe8
commit
427fbea180
4 changed files with 10 additions and 11 deletions
|
@ -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`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue