Skip to content

Commit

Permalink
mention travis on the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Dec 8, 2011
1 parent 97f8b4a commit e98a595
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -14,19 +14,19 @@ The npm install process is only verified to work in npm 1.0.x.
First, set up a Chain Gang, and specify the number of workers.

var chainGang = require('chain-gang')
var chain = chainGang.create({workers: 3})
var chain = chainGang.create({workers: 3})

Now, write a function to do some work.

var task = function(worker) {
var task = function(job) {
// do some work
var err;
try {
// do some work
catch(e) {
err = e
}
worker.finish(err, 1, 2, 3) // and call this when finished
job.finish(err, 1, 2, 3) // and call this when finished
}

You can add it add it to the Chain Gang and have it completed when there
Expand Down Expand Up @@ -84,6 +84,8 @@ Run this to compile coffeescript to javascript as you go:

make dev

Hopefully tests are green on [Travis-CI](http://travis-ci.org/#!/technoweenie/node-chain-gang).

## Note on Patches/Pull Requests

* Fork the project.
Expand Down

0 comments on commit e98a595

Please sign in to comment.