avocado-old/packages/behavior/context/flow.js

10 lines
287 B
JavaScript
Raw Normal View History

2019-09-08 03:44:23 -05:00
export const conditional = (condition, actions, context) => {
if (condition.get(context)) {
return this.serial(actions, context);
}
};
export const parallel = (actions, context) => actions.parallel(context);
export const serial = (actions, context) => actions.serial(context);