Enable async/await to work on functions that don't just return promises.

Florian Bösch pyalot at gmail.com
Sun Feb 26 13:14:18 UTC 2017


On Sun, Feb 26, 2017 at 2:08 PM, Jerald Cohen <cohenjerald7 at gmail.com>
wrote:

> (although, at the moment, I fail to see why one can't just use a normal
> "return").
>

You're probably unaware of this, but there is a fixation in this community,
and many adjacent ones, that if you sprinkle syntax magic dust atop
co-routines, it fixes issues of concurrency (it doesn't). But in a
nutshell, that's why you can't just use a normal "return".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170226/e8e1749b/attachment-0001.html>


More information about the es-discuss mailing list