minor
This commit is contained in:
parent
601d9583f7
commit
71fb491016
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ async function f() {
|
||||||
f();
|
f();
|
||||||
```
|
```
|
||||||
|
|
||||||
If `await` gets a non-promise object with `.then`, it calls that method providing native functions `resolve`, `reject` as arguments. Then `await` waits until one of them is called (in the example above it happens in the line `(*)`) and then proceeds with the result.
|
If `await` gets a non-promise object with `.then`, it calls that method providing built-in functions `resolve`, `reject` as arguments (just as it does for a regular `Promise` executor). Then `await` waits until one of them is called (in the example above it happens in the line `(*)`) and then proceeds with the result.
|
||||||
````
|
````
|
||||||
|
|
||||||
````smart header="Async class methods"
|
````smart header="Async class methods"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue