pub fn threads(&mut self, n: usize) -> &mut Self {
        assert!(
            n > 0,
            "The number of threads must be more than 0, or no components will be run"
        );
        self.threads = n;
        self
    }
/// The number of threads in the Kompact thread pool
///
/// # Note
///
/// You *must* ensure that the selected [scheduler](KompactConfig::scheduler) implementation
/// can manage the given number of threads, if you customise this value!
The number of threads in the Kompact thread pool
The number of threads in the Kompact thread pool
pub fn threads(&mut self, n: usize) -> &mut Self {
        assert!(
            n > 0,
            "The number of threads must be more than 0, or no components will be run"
        );
        self.threads = n;
        self
    }
pub fn threads ( & mut self , n : usize ) -> & mut Self { assert ! ( n 0 " " ) ; self . threads = n ; self }
The number of threads in the Kompact thread pool
The number of threads in the Kompact thread pool
&mut self
n
usize
&mut self
n
usize
note
You *must* ensure that the selected [scheduler](KompactConfig::scheduler) implementation
can manage the given number of threads, if you customise this value!
You * must * ensure that the selected [ scheduler ] ( KompactConfig :: scheduler ) implementation can manage the given number of threads if you customise this value!