0.0.6 • Published 11 years ago

runner5 v0.0.6

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

Runner5

Build Status

Running all of your functions.

Error Example:

var Runner5 = require('runner5');

function test(arg1, cb) {
  // do something
  cb('BLAH!', null);
}

var context = {};

var runner = new Runner5(context, test)

runner.error(function(err) {
  console.log(err);
});

runner.run(4);

or

var Runner5 = require('runner5');

function test(arg1, cb) {
  // do something
  cb('BLAH!', null);
}

var context = {};

var runner = new Runner5(context, test)

runner.on('failure', function(err) {
  console.log(err);
});

runner.run(4);

Success Example:

var Runner5 = require('runner5');

function test(arg1, cb) {
  // do something
  cb(null, ['a', 'b']);
}

var context = {};

var runner = new Runner5(context, test)

runner.success(function(results) {
  console.log(results);
});

runner.run(4);

or

var Runner5 = require('runner5');

function test(arg1, cb) {
  // do something
  cb(null, ['a', 'b']);
}

var context = {};

var runner = new Runner5(context, test)

runner.on('success', function(results) {
  console.log(results);
});

runner.run(4);
0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago