order-loop-unawaited-fixed-actor.ts 410 B

123456789
  1. // An un-awaited ask in a loop on a FIXED actor. Nothing awaits inside the body, so the
  2. // instances are issued back-to-back — but the actor's mailbox still serializes them,
  3. // so the cue is a self-arrow (`fifo`, repeat=serial) rather than a stack.
  4. const logger = agent("logger");
  5. const topics = await files.glob("*.md");
  6. for (const topic of topics) {
  7. logger.ask<string>(`note ${topic}`);
  8. }
  9. return topics;