Skip to content

Commit cc4147f

Browse files
committed
Added skeleton for waterfall
1 parent 48ce82c commit cc4147f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

2013-02-03-assignment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function (arg1, arg2, ..., callback) {
143143
In addition, the `waterfall` function is given a final `callback` function that should be called after the last task finishes. This callback will have a signature of:
144144

145145
```javascript
146-
function (err, arg1, arg2, ...) {
146+
function (err, result1, result2, ...) {
147147
}
148148
```
149149

@@ -154,7 +154,7 @@ Because asynchronous tasks often result in some sort of error (poor connections,
154154
* @param tasks is an array of functions
155155
* @param callback is the final function
156156
*/
157-
function waterfall(tasks, callback) {
157+
function waterfall (tasks, callback) {
158158
// ...
159159
}
160160
```

assignments/bonus-waterfall.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @param tasks is an array of functions
3+
* @param callback is the final function
4+
*/
5+
function waterfall (tasks, callback) {
6+
// ...
7+
}

0 commit comments

Comments
 (0)