eligrey/async.js
View on GitHub ↗ ★ 46 JavaScript
async/await before promises. async.js facilitates asynchronous actions ('promises') with synchronous-style syntax
7 mentions on Hacker News by 2 people: 0 stories, 7 comments · first 2010-07-27 · latest 2015-10-01
20082026
-
…syntax is similar, as you have to mark/encapsulate functions with async() to use the library. 1. https://github.com/eligrey/async.js
comment by Sephr · 2015-10-01 · in Microsoft Edge gets native ECMAScript 7 async/await support in latest build -
I made a library called async.js ( https://github.com/eligrey/async.js ) that makes it even easier to abstract away all callbacks with yields, so all you'd have to do is yield to.sleep(5); continueFun(); for your example. More complex…
comment by Sephr · 2013-03-03 · in Escape from Callback Hell -
Another library that tries to make async code much cleaner is async.js ( https://github.com/eligrey/async.js#readme ). It uses yield and generators to abstract away the callback jungle. For example, you can easily condense tens of lines of…
comment by Sephr · 2013-02-17 · in Ask HN: What is the coolest JS library out there? -
https://github.com/caolan/async : 3293 stars on Github https://github.com/eligrey/async.js : 15 stars on Github Sorry, you lost this one.
comment by tlrobinson · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
One way to escape callback hell is to use a async.js ( https://github.com/eligrey/async.js ), which uses yield to abstract away callbacks. It's Firefox-only (JS 1.7+) though, but that can probably be resolved by using a JS parser and…
comment by Sephr · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
…with pseudo-deferred functions today in normal JavaScript 1.7+. For example, see async.js ( https://github.com/eligrey/async.js ). Disclaimer: I wrote the library.
comment by Sephr · 2011-05-04 · in Google Releases JavaScript.next to JavaScript Compiler Traceur -
There's a JavaScript library called async.js ( http://github.com/eligrey/async.js ) that does that exact same thing (pseudo-asynchronosity using the yield statement in decorated functions).
comment by Sephr · 2010-07-27 · in Monocle - An async programming framework with a blocking look-alike syntax