Expand description
agents message — unary delivery primitive.
Addresses an agent with the same shape as agents spawn (ref /
tag / instance). The handler races a lock: winning it (or
targeting a plain ref) execs a detached agents spawn child
with the lock TRANSFERRED into it and returns the child’s first
item (Id); losing it enqueues, then waits for whichever comes
first — the queue row marked inactive (Delivered) or the lock
freeing up (exec the spawn child after all → Id). For
fire-and-forget parking without the race, see agents enqueue.
Modules§
Structs§
Enums§
- Path
- Request
Message - Response
- Unary response. Exactly one of these per call. Internally tagged
via
type; bare unit variantDeliveredserializes as{"type":"delivered"}. - Schema