src/actions/WhenAllAction.ts (10 lines of code) (raw):
import { DFTask } from "../task";
import { ActionType } from "./ActionType";
import { IAction } from "./IAction";
/** @hidden */
export class WhenAllAction implements IAction {
public readonly actionType: ActionType = ActionType.WhenAll;
public readonly compoundActions: IAction[];
constructor(tasks: DFTask[]) {
this.compoundActions = tasks.map((t) => t.actionObj);
}
}