Does async/await solve a real problem?
jordi at baylina.cat
Sat Mar 28 11:56:41 UTC 2015
I propose that all the calls to any async function will be implicit
(without the need of the await keyword). And precede it with a nowait only
when you want a promise.
See this snipped proposal:
This way, the code will not have the async clutter in the logic of the
function, but will be need to be declared async advising the programmer
that the code will not be executed atomically.
This proposal does not change the logics of the async/await proposal. It
only change the way to call async functions. What is now implicit make them
explicit with nowait and what is explicit with await make it implicit.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss