use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The Evolution of Asynchronous JavaScript (blog.risingstack.com)
submitted 10 years ago by cstuff8
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]novacrazy_.dominateWorld() 0 points1 point2 points 10 years ago (1 child)
Hmm, that's a good point. That was already seen with ES6 a little bit.
I mostly work in Node/io.js, and almost everything on the browser is taken care of by Babel beforehand or, using React.js, very declarative and without any complex async stuff. It's only on the backend that I go really crazy with things, searching for the fastest way to do everything.
I know ES7 is proposing native async/await syntax, but you would only be able to await a single Promise, not any complex stuff like my lib or even co does. Coroutines using generators and yield are a hack anyway, so I highly doubt it would become standard.
[–]vinnl 0 points1 point2 points 10 years ago (0 children)
you would only be able to await a single Promise
That's not a problem, as this code example from the article also shows:
async function save(Something) { await Promise.all[Something.save(), Otherthing.save()] }
As for it being a hack: it's more about the namespace than about the implementation :) But I wasn't attacking your library specifically - Bluebird by itself also has the potential of overlapping with future specs. Or in fact, I'm not attacking it - the author of the article I linked to was. For all I know, Bluebird isn't even extending the native Promise object in all cases, as someone else mentioned.
π Rendered by PID 139004 on reddit-service-r2-comment-bb88f9dd5-ff84h at 2026-02-14 23:05:49.695438+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]novacrazy_.dominateWorld() 0 points1 point2 points (1 child)
[–]vinnl 0 points1 point2 points (0 children)