From 7907cd667c2aa75dff6536af13033d93ac0d3f79 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 4 Aug 2020 10:33:40 +0300 Subject: [PATCH] minor fixes --- 1-js/11-async/08-async-await/article.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/1-js/11-async/08-async-await/article.md b/1-js/11-async/08-async-await/article.md index 92c1254d..29bfcaf5 100644 --- a/1-js/11-async/08-async-await/article.md +++ b/1-js/11-async/08-async-await/article.md @@ -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`.