Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Dec 15, 2016
1 parent bedd63e commit 19100e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ Below is an example of 5 tasks with 2 steps to execute for each. Each step has a
})

runner
.on('error', (runner, key) => {
.on('error', (key, error) => {
// one of tasks had an error on one of steps
// key is key of task
})
.on('task-done', (runner, key) => {
.on('task-done', (key) => {
// one of tasks completed all steps with no error

// log the task with results
console.log(runner.tasks[key].serialize())
// logs something like: { seconds: 0.3, success: true, step1: 'some result 1'}
})
.on('complete', (runner) => {
.on('complete', () => {
// all the tasks completed all steps
// if any of them had errors
// tryCounts are exhausted
Expand Down

0 comments on commit 19100e9

Please sign in to comment.