Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2012 (2)
20082026
  1. …syntax is similar, as you have to mark/encapsulate functions with async() to use the library. 1. https://github.com/eligrey/async.js
  2. 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
  3. 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…
  4. https://github.com/caolan/async : 3293 stars on Github https://github.com/eligrey/async.js : 15 stars on Github Sorry, you lost this one.
  5. 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…
  6. …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.
  7. 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).