Skip to main content

Module message

Module message 

Source
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§

request_schema
response_schema

Structs§

Args
Command
MessageArgs
Request
RequestDangerousAdvanced

Enums§

Path
RequestMessage
Response
Unary response. Exactly one of these per call. Internally tagged via type; bare unit variant Delivered serializes as {"type":"delivered"}.
Schema

Functions§

execute
execute_transform