fist-fistlabs_unit_serial
fist-fistlabs_unit_serial
is a fist plugin that provides abstract unit _fistlabs_unit_serial
.
Usage
$ npm i fist-fistlabs_unit_serial
app;app;
- Inherit from
_fistlabs_unit_serial
- Define
steps
which elements is unit function members names. - Define the methods which represents execution series.
After each step the unit keep previous step returned value in context.prev
property.
Last step result is a unit execution result. If one of steps was rejected, the unit will try to call e<stepName>
method as fallback if exists, but other methods will not be called. To stop steps execution propagation, call context.series.clear()
Any step can be asynchronous if returned promise
LICENSE MIT