mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
Add set_mailbox_capacity() function
This commit is contained in:
parent
68c5d6e6d6
commit
08c7743bb8
@ -231,6 +231,13 @@ where
|
|||||||
pub fn handle(&self) -> SpawnHandle {
|
pub fn handle(&self) -> SpawnHandle {
|
||||||
self.inner.curr_handle()
|
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>
|
impl<A, S> WsWriter for WebsocketContext<A, S>
|
||||||
|
Loading…
Reference in New Issue
Block a user