caolan/async
View on GitHub ↗ ★ 28,118 JavaScript
Async utilities for node and the browser
81 mentions on Hacker News by 76 people: 3 stories, 78 comments · first 2010-10-12 · latest 2020-01-21
20082026
-
The async nature of the language and platform is very easily managed with libs like https://github.com/caolan/async , I came from Django and to me, once I mastered the async nature and understood it, nodejs was a breath of fresh air.
comment by oron · 2012-09-09 · in Why I think Node.JS is a terrible platform -
…to ugly nested callbacks. There are many libraries that make this more manageable, like async: https://github.com/caolan/async
comment by illicium · 2012-09-09 · in Why I think Node.JS is a terrible platform -
We use a whole bunch, some of the main ones: - async => helpful async library https://github.com/caolan/async - nodeinspector => node js debugging in a nice webkit UI https://github.com/dannycoates/node-inspector - riakjs => for talking to…
comment by markruanedawson · 2012-05-24 · in Show HN: clipboard.com, the best way to save anything online -
…is dealing with third party apis concurrently. Use a library like Async, it makes this really easy. https://github.com/caolan/async (assume redis, mongo, facebook, and callback are all functions) async.parallel([ redis, mongo, facebook],…
comment by dc-tech-fan · 2012-05-16 · in The love and hate of Node.js -
…to performing database queries. I discovered Async.js at some point and haven't look back since: https://github.com/caolan/async
comment by stephank · 2012-04-19 · in Write logic, not mechanics -
…structure your asynchronous code with coroutines or, if you are feeling less adventurous, async ( https://github.com/caolan/async ) is an excellent helper library for common asynchronous code patterns and it works on the client-side as…
comment by shangaslammi · 2012-01-25 · in Node.js - A giant step backwards? -
I meant to link that. Now it's linked in the post, and it's here: https://github.com/caolan/async
comment by dodger · 2012-01-19 · in The Trello Tech Stack -
It's open-source: https://github.com/caolan/async
comment by gecko · 2012-01-19 · in The Trello Tech Stack -
…after the other, for example. Check out the Node.js async module for some cool patterns to use ( https://github.com/caolan/async ). In all, I wouldn't make the choice to move to Node.js because it has better performance or not, but the…
comment by matan_a · 2012-01-09 · in From Java to Node.js -
…async.js[1] offers some good tools for different kinds of control flow with callbacks. [1]: https://github.com/caolan/async
comment by thelastnode · 2012-01-02 · in Reducing Code Nesting -
…libraries[1] means that it's extremely rare for any code to be indented more than 5 blocks. [1] https://github.com/caolan/async is my lib of choice, but plenty of other suitable choices exist.
comment by glenjamin · 2011-09-29 · in Fixing the callback spaghetti in node.js -
…it was because my approach was flawed. I abstracted more, and I also started using async.js ( https://github.com/caolan/async ), and everything was well in the world.
comment by jscheel · 2011-09-29 · in Fixing the callback spaghetti in node.js -
I've been using: https://github.com/caolan/async It looks pretty decent in CoffeeScript: blah = (done) -> async.series [ (next) -> foo next (next) => @bar.baz 1, 2, 3, next (next) -> x = y z w next ], done
comment by snprbob86 · 2011-09-29 · in Fixing the callback spaghetti in node.js -
…//github.com/joyent/node/wiki/modules#wiki-async-flow For a specific example, look at async.parallel: https://github.com/caolan/async
comment by fatjonny · 2011-08-16 · in How LinkedIn used Node.js and HTML5 to build a better, faster app -
This is a great library for doing those sorts of things with Node: https://github.com/caolan/async
comment by pkulak · 2011-08-05 · in Node.js - A Giant Step Backwards -
…different styles of async programming. And there are a few other libraries that are a lot like https://github.com/caolan/async .
comment by benatkin · 2011-08-05 · in Node.js - A Giant Step Backwards -
…author links to a library that makes the second example easy to rewrite in a short and elegant way. https://github.com/caolan/async#forEach Also the first example, the cache hitting and missing, could be rewritten with async , too.…
comment by benatkin · 2011-08-05 · in Node.js - A Giant Step Backwards -
I've been very happy with "parallel" in the async library by caolan https://github.com/caolan/async
comment by reustle · 2011-07-18 · in Tame.JS: Flow-control by the makers of OkCupid.com -
…problem, and it's implemented poorly. Use a proper control-flow ( not "flow-control" ) library like https://github.com/caolan/async . Furthermore, why would you write an entire custom js parser for this? Why not use some of the many many…
comment by janetjackson · 2011-07-18 · in Tame.JS: Flow-control by the makers of OkCupid.com -
…of callbacks to a certain degree. Async[1] (the waterfall method) and Step[2] come to mind. [1]: https://github.com/caolan/async [2]: https://github.com/creationix/step
comment by stock_toaster · 2011-05-16 · in A benchmark comparison of Node.js, Tornado, and 3 Erlang servers -
…out the async library by caolan. Primarily designed for node.js, but also works with client-side. https://github.com/caolan/async It's got the nice feature of providing synchronous and asynchronous maps, reduces, filters and everything…
comment by Swizec · 2011-04-27 · in Reducing Map: jQuery vs jQuery vs JavaScript -
I'm the author of the Async JavaScript library ( http://github.com/caolan/async ) and kept finding myself including it with the excellent Underscore.js for small and client-side projects. This seemed like overkill, so I've made a tiny…
comment by caolanm · 2011-03-18 -
…https://github.com/chriso/chain.js https://github.com/substack/node-chainsaw https://github.com/caolan/async https://github.com/kriszyp/promised-io https://github.com/kriszyp/node-promise https://github.com/technoweenie/node-chain-gang
comment by Detrus · 2011-03-02 · in Three Routes to Spaghetti-Free Javascript -
…a compiles-to-Javascript language. And then a side-mention for something actually in Javascript: https://github.com/caolan/async So, to make spaghetti-free Javascript... don't write Javascript? I'll keep looking, thanks.
comment by Groxx · 2011-03-02 · in Three Routes to Spaghetti-Free Javascript -
…been done. One of the best libraries for managing asynchronous code in JS without hiding it away is http://github.com/caolan/async I agree wholeheartedly, by the way. There's way too much scope for leaky abstractions when you try to hide…
comment by stdbrouw · 2011-03-02 · in Three Routes to Spaghetti-Free Javascript -
We've been using the flow control helpers in async.js to help us with the nesting issue: ( https://github.com/caolan/async ). We use the waterfall most, as it allows one to run an array of function in a series with a callback at the end of…
comment by htsh · 2011-02-28 · in What it's like building a real website in Node.js -
…is a drag. I found a helpful library that made some of my workflow easier to express and maintain: https://github.com/caolan/async And I'm pretty sure I could simplify my code quite a bit more if I understood functional program patterns…
comment by dbro · 2011-02-28 · in What it's like building a real website in Node.js -
…of asynchronous recursion (or similar). Thank you. This is what I've been using lately, pretty neat: http://github.com/caolan/async
comment by Swizec · 2010-10-12 · in Rethinking JavaScript for-loops