[Pkg-javascript-commits] [node-async] 20/480: minor tweaks to 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 1a09567bd6374142515f736636edff18ccb11276
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date: Tue Jun 1 20:52:07 2010 +0100
minor tweaks to README.md
---
README.md | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index de437e8..f4a9884 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
_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 really I don't want to add to this myriad of already great
+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
@@ -20,15 +20,17 @@ 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 code that are asynchronous
-(parallel, series, waterfall...).
+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.
-## This module provides
+## API
+
+### Collections
* __forEach (forEachSeries)__ - Applies an async iterator to each item in an
array.
@@ -42,6 +44,9 @@ modules like node-continuables.
async test.
* __every__ - Returns true if evert element in the array satisfies an async
test.
+
+### Flow Control
+
* __series__ - Run an array of functions in series, each one running once the
previous function has completed.
* __parallel__ - Run an array of functions in parallel, without waiting until
--
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