Skip to content

Commit

Permalink
Some notes in Docco.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Jun 29, 2013
1 parent a176555 commit c344473
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function cadence () {
callback.errors = [];
callback.catchers = [];
callback.steps = [];
// TODO: DOCUMENT: Only one finalizer after each step. You cannot have two
// consecutive finalizers.
callback.finalizers = [];
// TODO: No good way to prevent or preserve callbacks. Step function needs
// to be in array.
Expand Down Expand Up @@ -351,6 +353,9 @@ function cadence () {

args = previous.__args;

// Add the finalizers for the current step. Save the previous invocation
// with the step so we can invoke the finalizer with arguments generated by
// the previous invocation.
if (cadence.finalizers[index]) {
previous.finalizers.push(cadence.finalizers[index]);
cadence.finalizers[index].previous = previous;
Expand Down

0 comments on commit c344473

Please sign in to comment.