X::Process::Mailbox
Thread-safe mailbox for actor-style message passing Each process has its own isolated mailbox
Constants
Log = ::Log.for(self)
Constructors
Instance methods
add_ack(acknowledgment : Message::Acknowledgment)
Store a message acknowledgment (delivery/processed)
clear
SourceCheck if a message value matches a pattern Supports:
- Null pattern → matches anything
- Exact value match
- Map pattern matching (partial map with null wildcards)
Add a message to the mailbox Returns true if successful, false if mailbox is full
select(pattern : Value::Context) : Message::Context | Nil
Find and remove the first message matching the given pattern Used by RECEIVE_SELECT