minor fixes

This commit is contained in:
Ilya Kantor 2020-08-04 10:33:40 +03:00
parent f0ad0bafa2
commit 7907cd667c

View file

@ -139,9 +139,8 @@ But we can wrap it into an anonymous async function, like this:
...
})();
```
````
````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`.