Skip to content

Commit

Permalink
Docs: Clarify err usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMcMahon committed Jul 27, 2015
1 parent f9e3c49 commit f30fc3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/recipes/running-tasks-in-series.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ So this example would look like:
var gulp = require('gulp');

// takes in a callback so the engine knows when it'll be done
gulp.task('one', function(cb) {
gulp.task('one', function (cb) {
// do stuff -- async or otherwise
cb(err); // if err is not null and not undefined, the orchestration will stop, and 'two' will not run
fs.writeFile('filename', 'data', opts, function (err) {
cb(err); // if err is not null and not undefined, the orchestration will stop, and 'two' will not run
});
});

// identifies a dependent task must be complete before this one begins
Expand Down

0 comments on commit f30fc3a

Please # to comment.