10 lines
287 B
JavaScript
10 lines
287 B
JavaScript
|
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);
|