Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.15 KB

parallel.md

File metadata and controls

25 lines (16 loc) · 1.15 KB

simple

Open in playground

export const main = asl.deploy.asStateMachine(async (input: {}) => {
  return await Promise.all([worker(), worker()]);
});

enclosed variables

Open in playground

export const main = asl.deploy.asStateMachine(async (input: {}) => {
  const enclosedVar1 = { something: "left" };
  const enclosedVar2 = { something: "right" };
  return await Promise.all([worker(enclosedVar1), worker(enclosedVar2)]);
});