[Pkg-javascript-commits] [node-async] 21/480: updated README.md

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit ea4c476560a87d4b665387dbb1d056a8f679f1be
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Tue Jun 1 21:59:22 2010 +0100

    updated README.md
---
 README.md | 46 ++++++++++++++++++++--------------------------
 1 file changed, 20 insertions(+), 26 deletions(-)

diff --git a/README.md b/README.md
index f4a9884..c1b7172 100644
--- a/README.md
+++ b/README.md
@@ -1,32 +1,26 @@
 # Async
-_Higher-order functions and common patterns for asynchronous code_
-
-Writing an async library has become a bit of a right of passage for node
-developers and I really don't want to add to this myriad of already great
-modules. Really.
-
-However (you saw that coming!), when I'm using node, I want to stay fairly
-close to the vanilla async implementation. When writing my own modules I try
-to follow the convention of using a single callback with an optional error as
-the first argument. This makes the API easier to understand, and allows people
-to wrap the API with other methods of handling async code if they so wish.
-
-Because of this, I've avoided using the exising async wrapper modules in favour
-of the standard callbacks provided by node. However, I've found myself
-repeating a number of patterns, so I've decided to abstract some of the more
-common ones into a separate module. Aha! I hear you say. You've fallen into
-the trap, and now you too are implementing a new way of doing async!
-
-Well, not quite. What I've ended up with is a few higher-order functions that
-operate on async code using the convention of a single callback. This includes
-the usual 'functional' suspects (map, reduce, filter, forEach...) as well as
-some common patterns for running blocks of async code (parallel, series,
-waterfall...).
+_Higher-order functions and common patterns for asynchronous code in node.js_
+
+I've so far avoided using the exising async modules in favour of the standard
+callbacks provided by node. When writing modules, I find sticking to the
+convention of using a single callback makes the API easier to understand, and
+allows people to wrap the module with other methods of handling async code if
+they so wish.
+
+However, I've found myself repeating a number of patterns, so I've decided to
+abstract some of the more common ones into a separate module. What I've ended
+up with is a few higher-order functions that operate on async code using the
+convention of a single callback. This includes the usual 'functional'
+suspects (map, reduce, filter, forEach...) as well as some common patterns
+for running blocks of async code (parallel, series, waterfall...).
 
 __This is not an attempt to replace the standard callback mechanism in
-node.__ If you're interested in other ways to manage async code, take a
-look at the current implementations of the old node Promise objects or
-modules like node-continuables.
+node.__ In fact, it is designed to work as seamlessly as possible with the
+existing node modules, and any other module which follows those conventions.
+If you're interested in other ways to manage async code, then you may like
+to take a look at the new implementation of the old node Promise objects or
+alternative modules like node-continuables.
+
 
 ## API
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list