Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Contrib: waterfall(..) #15

Closed
getify opened this issue Jan 4, 2014 · 0 comments
Closed

Contrib: waterfall(..) #15

getify opened this issue Jan 4, 2014 · 0 comments
Assignees

Comments

@getify
Copy link
Owner

getify commented Jan 4, 2014

Need a waterfall(..) contrib plugin, which takes a list of functions, and applies them in order just like a normal sequence of then(..)s, but it collects aggregated output, where step 2 gets output from step 1, step 3 gets output from both step 2 and 3, step 4 gets messages from 1-3, etc.

The final success message(s) from waterfall(..) is the full aggregate of all success messages. An error anywhere along the way behaves like an error in a normal sequence.

Note: this method is sorta conceptually similar to an array-map, where we're mapping a set of steps to a set of messages.

@ghost ghost assigned getify Jan 4, 2014
@getify getify closed this as completed in 84dd5a7 Jan 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant