pub fn make_mailbox(&mut self, id: usize, buffer: usize) -> Mailbox {
        let (tx, rx) = mpsc::channel(buffer);
        self.mailboxes.insert(id, tx);

        Mailbox { id, rx }
    }
/// Creates a new mailbox using the given id and buffer size for maximum messages
Creates a new mailbox using the given id and buffer size for maximum messages
Creates a new mailbox using the given id and buffer size for maximum messages
pub fn make_mailbox(&mut self, id: usize, buffer: usize) -> Mailbox {
        let (tx, rx) = mpsc::channel(buffer);
        self.mailboxes.insert(id, tx);
        Mailbox { id, rx }
    }
pub fn make_mailbox ( & mut self , id : usize , buffer : usize ) -> Mailbox { let ( tx , rx ) = mpsc :: channel ( buffer ) ; self . mailboxes . insert ( id , tx ) ; Mailbox { id , rx } }
Creates a new mailbox using the given id and buffer size for maximum messages
Creates a new mailbox using the given id and buffer size for maximum messages
&mut self
id
usize
buffer
usize