Expand description
A Wait block: the run stops for a time or for an event (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Waiting”).
Before it waits the run keeps a checkpoint that says what it waits for: the
time (deadlines) or the key of the event (resume_on), with the block in
frontier.waiting. A restart finds that checkpoint, runs the block again, and
the block takes the deadline or the key it finds there, so the wait goes on
where it was. A deadline that passed while AgentMux was stopped ends the wait
at once, saying it was late. A wait on an event does not remember events
that came while AgentMux was stopped: their source sends them again.
Structs§
- OpenKey 🔒
- Closes the wait on its key when the block ends however it ends, including when the run is stopped and the block is dropped.