Hacker GitHub

← All repos

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

Mentions per year 81 mentions · busiest year 2012 (21)
20082026
  1. 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?
  2. …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?
  3. …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)
  4. …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
  5. …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/
  6. 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
  7. 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
  8. …primitives in there. I don't write Javascript without it! Here is a link to the documentation: https://github.com/caolan/async
  9. …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.
  10. …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
  11. …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…
  12. …), 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
  13. …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
  14. …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
  15. …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
  16. …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#
  17. …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…
  18. …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…
  19. …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
  20. …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
  21. 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
  22. …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
  23. …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)?…
  24. …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
  25. maybe https://github.com/caolan/async is the answer?
  26. …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…
  27. …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.
  28. …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
  29. …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+
  30. …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
  31. …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.
  32. …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…
  33. …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
  34. 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
  35. …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
  36. 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
  37. Async: https://github.com/caolan/async - it helps avoid callback hell. I use it in node.js.
  38. …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?
  39. …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…
  40. …perhaps not. Just seems like what's covered is mostly run-of-the-mill JS fodder... 1. https://github.com/caolan/async#readme
  41. …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
  42. …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
  43. …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.
  44. https://github.com/caolan/async : 3293 stars on Github https://github.com/eligrey/async.js : 15 stars on Github Sorry, you lost this one.
  45. There's also this library: https://github.com/caolan/async
  46. …from the async library? Are they both trying to solve the same problem or are they complementary? https://github.com/caolan/async
    comment by olalonde · 2012-10-16 · in Rsvp.js
  47. …developer runs in to. A common library to help with this and other issues is Async: https://github.com/caolan/async Sometimes, it's just better to give your functions names, and pull them out. RSVP.js looks nice. Also, I like jQuery's…
    comment by lancefisher · 2012-10-16 · in Rsvp.js
  48. …(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
  49. …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:…
  50. …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…