minor fixes
This commit is contained in:
parent
f0ad0bafa2
commit
7907cd667c
1 changed files with 1 additions and 2 deletions
|
@ -139,9 +139,8 @@ But we can wrap it into an anonymous async function, like this:
|
||||||
...
|
...
|
||||||
})();
|
})();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
````
|
````
|
||||||
|
|
||||||
````smart header="`await` accepts \"thenables\""
|
````smart header="`await` accepts \"thenables\""
|
||||||
Like `promise.then`, `await` allows us to use thenable objects (those with a callable `then` method). The idea is that a third-party object may not be a promise, but promise-compatible: if it supports `.then`, that's enough to use it with `await`.
|
Like `promise.then`, `await` allows us to use thenable objects (those with a callable `then` method). The idea is that a third-party object may not be a promise, but promise-compatible: if it supports `.then`, that's enough to use it with `await`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue