Struct spdlog::ThreadPoolBuilder
source · pub struct ThreadPoolBuilder { /* private fields */ }
Available on crate feature
multi-thread
only.Expand description
The builder of ThreadPool
.
Implementations§
source§impl ThreadPoolBuilder
impl ThreadPoolBuilder
sourcepub fn capacity(&mut self, capacity: usize) -> &mut Self
pub fn capacity(&mut self, capacity: usize) -> &mut Self
Specifies the capacity of the operation channel.
This parameter is optional, and defaults to 8192 (The value may change in the future).
When a new operation is incoming, but the channel is full, it will be
handled by sink according to the OverflowPolicy
that has been set.
Panics
Panics if the value is zero.
sourcepub fn build(&self) -> Result<ThreadPool>
pub fn build(&self) -> Result<ThreadPool>
Builds a ThreadPool
.