Add set_mailbox_capacity() function

This commit is contained in:
Kelly Thomas Kline 2018-11-15 18:59:36 -08:00 committed by GitHub
parent cd9901c928
commit 6b96c79802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -231,6 +231,13 @@ where
pub fn handle(&self) -> SpawnHandle {
self.inner.curr_handle()
}
/// Set mailbox capacity
///
/// By default mailbox capacity is 16 messages.
pub fn set_mailbox_capacity(&mut self, cap: usize) {
self.inner.set_mailbox_capacity(cap)
}
}
impl<A, S> WsWriter for WebsocketContext<A, S>