Expand description
One window’s task: ask the agent, then wait for whichever comes first (spec §3.5). It is the only place a window’s closure is taken and run, so it runs once, and the deadline is the one thing that always ends the wait: no state of the agent holds the person’s action back.
Structs§
- Snapshot 🔒
- What one look at the window found.
Constants§
- POLL 🔒
- How often the window looks for the end of the turn once the agent has answered.
Functions§
- ask 🔒
- Send the note that starts the agent’s turn.
falsewhen it could not be delivered. - finish 🔒
- End the window: take it out of the ledger, clear the chip, write the row, and run the closure.
- in_
a_ 🔒turn - Whether any of the agent’s panes is in a turn.
- run 🔒
- send_
note 🔒 - One system note that starts a turn on the agent
route. Tests catch the notes for the routes they name.