pub fn with_factory<F>(factory: F) -> Self
    where
        F: FnMut() -> C + 'a
    {
        let max_jobs = num_cpus::get();
        let ctx_factory = Box::new(factory);
        Self { max_jobs, ctx_factory }
    }
/// Creates a new `Scheduler` using the given context factory. A separate context instance will
/// be created for each job.
Creates a new `Scheduler` using the given context factory. A separate context instance will
be created for each job.
Creates a new ` Scheduler ` using the given context factory . A separate context instance will be created for each job .
pub fn with_factory<F>(factory: F) -> Self
    where
        F: FnMut() -> C + 'a
    {
        let max_jobs = num_cpus::get();
        let ctx_factory = Box::new(factory);
        Self { max_jobs, ctx_factory }
    }
pub fn with_factory < F > ( factory : F ) -> Self where F : FnMut ( ) -> C + ' a { let max_jobs = num_cpus :: get ( ) ; let ctx_factory = Box :: new ( factory ) ; Self { max_jobs , ctx_factory } }
Creates a new `Scheduler` using the given context factory.
Creates a new ` Scheduler ` using the given context factory .
factory
F