Enable async/await to work on functions that don't just return promises.
Florian Bösch
pyalot at gmail.com
Sun Feb 26 00:01:11 UTC 2017
On Sat, Feb 25, 2017 at 11:55 PM, Codefined <codefined at debenclipper.com>
wrote:
> This seems to be so very confusing for anybody new studying this language,
> almost everyone I talk to gets stuck up on some part of it.
>
Promises are bad, and mixing them with async/await is worse. Should never
have been added to any kind of standard.
>
> async function asyncFunction() {let [err, data] = await asyncFunction()
> }
>
> function asyncFunction(){
return otherAsyncFunction();
}
Even simpler, you'd just need co-routines.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170226/bd2a6a06/attachment.html>
More information about the es-discuss
mailing list