order-unawaited-two-actors.ts 377 B

12345678
  1. // The same shape on TWO actors: genuinely concurrent. Expect NO edge between the two
  2. // steps — concurrency is incomparability in the partial order, so it needs no ink.
  3. const alpha = agent("alpha");
  4. const beta = agent("beta");
  5. const p1 = alpha.ask<string>("assess A");
  6. const p2 = beta.ask<string>("assess B");
  7. const [a, b] = await Promise.all([p1, p2]);
  8. return `${a} ${b}`;