3 ms·
the requirements of the second case are a subset of the first case, so then it should be theoretically possible to await inside non async functions. Seems to me
by cuteboy19 5y ago
the requirements of the second case are a subset of the first case, so then it should be theoretically possible to await inside non async functions. Seems to me that JS simply doesn't implement this ability, but it could if it wanted to