pub fn mailbox(capacity: usize) -> (MailboxSender, MailboxReceiver)Expand description
Creates a bounded mailbox pair with the given capacity.
Returns a (MailboxSender, MailboxReceiver) tuple. The sender is
clonable; the receiver is unique (consumed by [crate::actor::Actor::run]).