Permalink
Browse files

docs

  • Loading branch information...
tj committed Mar 13, 2013
1 parent 8c9c774 commit 72ee2126e5dd910f4c1e5c7e14b1c06f1aa9122e
Showing with 6 additions and 4 deletions.
  1. +6 −4 Readme.md
View
@@ -1,7 +1,7 @@
# batch
- Simple async batch
+ Simple async batch with concurrency control and progress reporting.
## Installation
@@ -15,14 +15,16 @@ $ npm install batch
var Batch = require('batch')
, batch = new Batch;
+batch.concurrency(4);
+
ids.forEach(function(id){
batch.push(function(done){
User.get(id, done);
});
});
batch.on('progress', function(e){
-
+
});
batch.end(function(err, users){
@@ -50,7 +52,7 @@ batch.end(function(err, users){
(The MIT License)
-Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
+Copyright (c) 2013 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -69,4 +71,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit 72ee212

Please sign in to comment.