mirror of
https://github.com/actix/actix-web.git
synced 2024-12-28 19:10:36 +00:00
Add set_mailbox_capacity() function
This commit is contained in:
parent
68c5d6e6d6
commit
08c7743bb8
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue