Expand description
agents message — unary delivery primitive with a total FIFO
order.
Addresses an agent with the same shape as agents spawn (ref /
tag / instance). A plain ref execs a detached agents spawn
child carrying the message inline and returns the child’s first
item (Id). An instance or tag ALWAYS enqueues first — the queue
row’s id fixes the delivery position at commit time — then races
the agent’s lock; winning it execs a WAKE-UP spawn child (EMPTY
message, the lock TRANSFERRED into it) that drains the queue
oldest-id-first. Either way the call resolves Delivered when
its own row is consumed, so delivery order is always enqueue
order. For fire-and-forget parking without the race, see
agents enqueue.
Modules§
Structs§
- Args
- Command
- Listener
Execution - One
/listenbroadcast run ofagents message: the actualRequest, the producer’sAgentArguments, and the unary response future. Seecrate::cli::broadcast_listener. - Message
Args - Request
- Request
Dangerous Advanced
Enums§
- Path
- Request
Message - Response
- Unary response. Exactly one of these per call. Internally tagged
via
type; bare unit variantDeliveredserializes as{"type":"delivered"}. - Schema