emission-graph-empty-join-into-ask.ts 511 B

1234567
  1. // Promise.all([]) — a join with NO inputs — consumed by an ask. The join carries its
  2. // own label, so join#1 -> ask#1 is emitted, the join is NOT pruned (it has an edge),
  3. // and the ask gets NO source-completion edge (it has incoming data). In the actor
  4. // projection the join drops and contributes no replacement edge (it has no producers),
  5. // so the "solo" actor renders with no in-edge at all.
  6. const nothing = await Promise.all([]);
  7. return agent("solo").ask<string>(`start ${JSON.stringify(nothing)}`);