![]() The provided arguments will be emitted in the task event, to let you handle the task execution. The flow definition methods take any and as many arguments as you like. the next group is only started after the previous group has finished.parallel after series or vice versa, a new group is being created automatically. when ever you add a different task e.g.parallel tasks that are added in a row will create a new `parallel group.series tasks added in a row will create a new series group. ![]() all eventually tasks will be in the same group: started immediately, and evaluated at the final callback (done).flow groups are created automatically, depending on your definition.The flow is basically executed in the order the definition methods are called. series ( 'content', task ( 'ENTER CONTENT' ) ) // handle flow events var results = flow definition parallel ( 'footer', task ( 'ADD A FOOTER' ) ). parallel ( 'header', task ( 'ADD A HEADER' ) ). Var Flow = require ( 'flow-builder' ) var flow = new Flow ( ) // define flow flow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |