[Pkg-javascript-commits] [node-async] 357/480: Changed the order of the asyn.each examples. The simpler version is first. The more detailed version is second.
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:42 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 b6408da24722c021e7529c8a8314b32991d445bd
Author: Justin Noel <github at calendee.com>
Date: Mon Oct 28 13:50:12 2013 -0500
Changed the order of the asyn.each examples. The simpler version is first. The more detailed version is second.
Signed-off-by: Justin Noel <github at calendee.com>
---
README.md | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index ae34987..3fd505e 100644
--- a/README.md
+++ b/README.md
@@ -170,6 +170,16 @@ __Arguments__
__Examples__
+
+```js
+// assuming openFiles is an array of file names and saveFile is a function
+// to save the modified contents of that file:
+
+async.each(openFiles, saveFile, function(err){
+ // if any of the saves produced an error, err would equal that error
+});
+```
+
```js
// assuming openFiles is an array of file names and saveFile is a function
// to save the modified contents of that file:
@@ -203,17 +213,6 @@ async.each(openFiles, function( file, callback) {
---------------------------------------
-```js
-// assuming openFiles is an array of file names and saveFile is a function
-// to save the modified contents of that file:
-
-async.each(openFiles, saveFile, function(err){
- // if any of the saves produced an error, err would equal that error
-});
-```
-
----------------------------------------
-
<a name="forEachSeries" />
<a name="eachSeries" />
### eachSeries(arr, iterator, callback)
--
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