Steps through a single task with differing parameters and returns the results of the first successful one or last failed one
For example:
cycle([ 'foo', 'foo2', 'foo4'], getResource).then(useResource);
This is handy for when the only thing that changes between the steps in your plan are parameters.
a list of the parameters to pass to the Task. If the task takes multiple parameters, these should be represented as a list
the Task to execute
Generated using TypeDoc
Steps through a single task with differing parameters and returns the results of the first successful one or last failed one
Example
For example:
This is handy for when the only thing that changes between the steps in your plan are parameters.