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

10 lines
281 B
JavaScript
Raw Normal View History

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