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
-
https://github.com/caolan/async/blob/master/lib/internal/eac... - this is the code the async Node lib uses for every "(X)Limit" function to limit the number run at once.
comment by lostcolony · 2020-01-21 · in What is Rust and why is it so popular? -
…level JS/Node engineers. This isn’t exhaustive but it’s good practice for sure. Good luck! [0] https://github.com/caolan/async
comment by basetensucks · 2018-06-15 · in Ask HN: “Expert Level” JavaScript questions? -
…terms of proper coding style at least) long time ago with async.js: http://caolan.github.io/async/ https://github.com/caolan/async
comment by paradite · 2017-02-15 · in Callback Hell (2016) -
…has some amazing sugar on nearly every use-case the most common for me being async.auto(). [1] https://github.com/caolan/async
comment by nodesocket · 2017-02-03 · in Node v7.5.0 Released -
…ever be needed). Polluting npm with dozen of one-liner is not a good idea (never forget left-pad) * https://github.com/caolan/async/blob/master/CHANGELOG.md * http://moutjs.com/
comment by 131hn · 2016-07-16 · in Just: A library of dependency-free JS utilities that do just do one thing -
What about this nodejs async, https://github.com/caolan/async May be a replacement until the async is implemented in V8
comment by treenyc · 2016-05-17 · in JavaScript async/await implemented in V8 -
I prefer to just use async ( https://github.com/caolan/async ) for all control and error flow. Namely async.auto() can do almost any crazy flow.
comment by nodesocket · 2016-05-02 · in After a year of using Node.js in production -
…primitives in there. I don't write Javascript without it! Here is a link to the documentation: https://github.com/caolan/async
comment by apeace · 2016-03-23 · in Faking Co-Routines, or Why Callback Hell Is Over (2014) -
…may want to consider renaming your library. There's already a very popular lib with the same name: https://github.com/caolan/async Edit: it appears that the caolan async lib came out after yours. Sorry for the confusion.
comment by colordrops · 2015-10-02 · in Microsoft Edge gets native ECMAScript 7 async/await support in latest build -
…be very hard to write a Promise.auto that would let you do (compare to the async.auto example at https://github.com/caolan/async#auto ): let results = await Promise.auto({ get_data: async function(){ console.log('in get_data'); // async…
comment by phs2501 · 2015-05-23 · in Node.js: Cluster vs. Async -
…more complex control-flow problems such as throttling, etc[2] (See link for more examples). [0] https://github.com/caolan/async [1] https://github.com/creationix/step [2] https://github.com/caolan/async#control-flow edit: Yes, you can also…
comment by distracteddev90 · 2015-02-19 · in Rdb – a Node.js ORM with transactions, persistence ignorance and promises -
…), and bluebird ( https://github.com/petkaantonov/bluebird ). Not to mention the Async library ( https://github.com/caolan/async ) which is full of tools to help manage it. As for blocking, it's something you deal with. Realistically…
comment by CitizenKane · 2014-11-26 · in Yahoo Mail moving to React -
…and you can enforce some degree of type correctness with Closure compiler annotations. [1] https://github.com/caolan/async [2] https://github.com/caolan/async#auto [3] http://nodejs.org/api/child_process.html
comment by yid · 2014-05-13 · in Why Node.js is becoming the go-to technology in the Enterprise -
…node.js scripts with these libraries: * request - https://github.com/mikeal/request * async - https://github.com/caolan/async * cheerio - https://github.com/cheeriojs/cheerio * nedb - https://github.com/louischatriot/nedb
comment by egeozcan · 2014-04-13 · in Import.io – Structured Web Data Scraping -
…aren't enough, you can subclass EventEmitter to further decouple. For more complex cases there's https://github.com/caolan/async , which makes many nontrivial async problems relatively easy. Why is it so hard for so many people to…
comment by christiansmith · 2014-03-14 · in An open question (rant) about Node.js -
…https://sourcegraph.com/github.com/jashkenas/underscore https://sourcegraph.com/github.com/caolan/async [1] https://sourcegraph.com/github.com/sourcegraph/jsg
comment by sqs · 2014-02-17 · in Introducing Bing Code Search for C# -
…time to get the end result faster" is a pattern that often comes up. Nowadays I use "async.js" ( https://github.com/caolan/async ): does the same, but with extra features. It doesn't rely on jQuery unlike the snipplets of the article, so…
comment by wildpeaks · 2014-02-15 · in Multiple Simultaneous Ajax Requests (with one callback) in jQuery -
…if an asynchronous function or a callback raises an exception? The word "catch" doesn't appear in https://github.com/caolan/async/blob/master/lib/async.js . I ask because I wrote some Lisp macros (I work in a Lisp that compiles to JS) to…
comment by gruseom · 2014-02-14 · in How I want to write Node: Stream all the things -
…have to check out Wappalyzer. The code is written in coffeescript, and some key npm modules are: - https://github.com/caolan/async - https://github.com/brycebaril/node-tokenthrottle-redis - https://github.com/rs/node-netmask I was at one…
comment by coderholic · 2014-02-14 · in Show HN: A simple IP address API -
…new addition that takes a amd approach to asynchronously running multiple tasks at the same time: https://github.com/caolan/async#auto if you haven't seen it already
comment by campbellmorgan · 2014-02-04 · in Managing Node.js Callback Hell with Promises, Generators and Other Approaches -
The async library ( https://github.com/caolan/async ) offers many excellent tools for staying out of callback hell. After using it one project, I can't imagine trying to write heavily async javascript without it.
comment by danenania · 2014-01-17 · in Node.js, MongoDB, and you: an intro in parts -
…2. Actually, it looks like sync detection was reverted a few months ago. It was initially added in https://github.com/caolan/async/commit/6ad64aca4c04857086f03...
comment by ggreer · 2013-11-03 · in Play Fantasy Even If You Hate Football -
…promise patterns/recipes. In particular, how about a blog post on the promise equivalents to the https://github.com/caolan/async Collections and Control Flow methods (since that library seems to be heavily used in the node community)?…
comment by pjs67123 · 2013-10-07 · in Bluebird – A full-featured, fast promises library for JavaScript -
…promiseishKew.js 2654 123.50 promiseishQ.js 56508 804.21 note: async.js is basically waterfall from https://github.com/caolan/async [1]: https://github.com/spion/async-compare
comment by spion · 2013-10-04 · in Bluebird – A full-featured, fast promises library for JavaScript -
maybe https://github.com/caolan/async is the answer?
comment by kika · 2013-10-02 · in Raw: the missing link between spreadsheets and vector graphics -
…that handles asynchronous code with explicity flow-control based structure. Async has throttling ( https://github.com/caolan/async#queue ) and all kinds of things built into it that can address some of those things.. for other things where…
comment by dccoolgai · 2013-09-05 · in It ain't about the callbacks, it's about the flow control -
…Anytime I see that it drives me crazy.... This is the correct reaction to heavily nested callbacks. https://github.com/caolan/async provides several excellent functions to make readable code instead of callback soup.
comment by Deestan · 2013-09-02 · in Why JavaScript Will Become the Dominant Programming Language of the Enterprise -
…more than one I think, and thankfully someone smart has made a library you can use to manage them! https://github.com/caolan/async Saying that, I don't mind the way things look with the whole await/async stuff in C# and etc. However I…
comment by ryan-allen · 2013-08-15 · in Callbacks as our Generation's Goto Statement -
…just started doing development in Node.js. Originally using the excellent caolan/async library ( https://github.com/caolan/async ) for handling synchronous situations. Now started moving towards Promises but finding it quite hard to locate…
comment by SeanDav · 2013-07-08 · in Promises/A+ -
…for persistent data structures. Callbacks are handled by Promises or say async https://github.com/caolan/async For heavy compute tasks you can launch child processes under Node.js and communicate with one management process, the Cluster
comment by agilebyte · 2013-06-25 · in Why I am so excited about Clojure -
…result. In Node, you either 1.) descend into "callback hell" or 2.) use some sort of Async module [ https://github.com/caolan/async ]. I personally love Node but would say 'Expect to learn new patterns' to anyone making a transition to it.
comment by spenvo · 2013-05-26 · in “Why are you using Node.js rather than PHP?” -
…Internally, it mostly does bean-counting (but very helpfully so). As you can see in the source https://github.com/caolan/async/blob/master/lib/async.js#L35... async.sortBy simply uses Array.sort for the actual sorting. The only reason…
comment by meryn · 2013-03-29 · in .NET and Node.JS – Performance Comparison -
…the same as synchronous code. Yes there is inlineCallbacks and I used. Node.js also has async ( https://github.com/caolan/async ). But you don't address the main problem that I raised -- fragmentation of libraries. Python is great because…
comment by rdtsc · 2013-03-18 · in Async I/O for Python 3 -
https://github.com/caolan/async Once I started using the async library, all of these problems everyone is illustrating basically disappeared.
comment by rbrcurtis · 2013-03-03 · in Escape from Callback Hell -
…elegant. In fact it makes concurrent code very easy to write and comprehend. Combined with async ( https://github.com/caolan/async ) it is a pure joy. As for pure JavaScript, dealing with callbacks is definitely not fun.
comment by cwiz · 2013-03-03 · in Escape from Callback Hell -
A great library for structuring your callbacks is "async": https://github.com/caolan/async I've only used it with node.js, but it's supposed to work in web browsers as well. It allows you to think a little more procedurally ("waterfall" is…
comment by digisth · 2013-03-02 · in Escape from Callback Hell -
Async: https://github.com/caolan/async - it helps avoid callback hell. I use it in node.js.
comment by byoung2 · 2013-02-17 · in Ask HN: What is the coolest JS library out there? -
…each async call. It's crazy. Or use a sane async library. As far as I can tell, something like https://github.com/caolan/async gives you a strict superset of Promise features, unless you're for some reason tied to how code with promises…
comment by thedufer · 2013-01-29 · in What's so great about JavaScript Promises? -
…you out. There are node modules implementing fibers, and there are utilities like async.waterfall ( https://github.com/caolan/async ) that flatten the callback pyramid. > most serious back end servers are not written in node either. Define…
comment by niggler · 2013-01-09 · in An important announcement to the Vert.x community -
…perhaps not. Just seems like what's covered is mostly run-of-the-mill JS fodder... 1. https://github.com/caolan/async#readme
comment by k3n · 2012-12-31 · in John Resig's ‘Secrets of the JavaScript Ninja’ has been released -
…would let you choose an implementation without tying you to any particular callback model. [1] https://github.com/caolan/async
comment by snprbob86 · 2012-12-22 · in Node.js error handling -
…have mentioned "continuation passing style"[1] as it is the term for that style of programming. [0] https://github.com/caolan/async [1] https://en.wikipedia.org/wiki/Continuation-passing_style
comment by olalonde · 2012-11-03 · in Nonsense Accusations of Spaghetti Code Considered Harmful -
…DuckDuckGo should be allowed to rename itself as Google if they become more popular than Google. https://github.com/caolan/async had zero stars (i.e. didn't exist) back when I released async.js.
comment by Sephr · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
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 -
There's also this library: https://github.com/caolan/async
comment by nickporter · 2012-11-02 · in Escape from Callback Hell: Callbacks are the modern goto -
…(As well as all the connect middlewares - https://github.com/senchalabs/connect ) * Async - https://github.com/caolan/async - is very readable. Async is a great library for async ops handling in JS, and it's really neat seeing the…
comment by radagaisus · 2012-09-24 · in Reading Other People's Code -
…puts a tremendous toll on productivity (though many will deny it). There are libraries like async ( https://github.com/caolan/async ) and streamline ( https://github.com/Sage/streamlinejs ) which try to eliminate #2. They are band-aids:…
comment by ak217 · 2012-09-09 · in Why I think Node.JS is a terrible platform -
…hard in async, especially when you are getting started. But there are libraries which help, such as https://github.com/caolan/async . - The library approach works for me and is a safer bet, but isn't the cleanest. If you are adventurous…
comment by jeswin · 2012-09-09 · in Why I think Node.JS is a terrible platform