1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

Add set_mailbox_capacity() function

This commit is contained in:
Kelly Thomas Kline 2018-11-15 18:59:36 -08:00 committed by Douman
parent 68c5d6e6d6
commit 08c7743bb8

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>