pub fn executor<E, F>(&mut self, f: F) -> &mut Self
    where
        E: FuturesExecutor + Sync + 'static,
        F: Fn(usize) -> E + 'static,
    {
        let sb = move |t: usize| ExecutorScheduler::from(f(t));
        self.scheduler_builder = Rc::new(sb);
        self
    }
/// Set a particular scheduler implementation based on a [FuturesExecutor](executors::FuturesExecutor)
///
/// Takes a function `f` from the number of threads to a concrete executor as argument.
Set a particular scheduler implementation based on a [FuturesExecutor](executors::FuturesExecutor)
Takes a function `f` from the number of threads to a concrete executor as argument.
Set a particular scheduler implementation based on a [ FuturesExecutor ] ( executors :: FuturesExecutor ) Takes a function ` f ` from the number of threads to a concrete executor as argument .
pub fn executor<E, F>(&mut self, f: F) -> &mut Self
    where
        E: FuturesExecutor + Sync + 'static,
        F: Fn(usize) -> E + 'static,
    {
        let sb = move |t: usize| ExecutorScheduler::from(f(t));
        self.scheduler_builder = Rc::new(sb);
        self
    }
pub fn executor < E , F > ( & mut self , f : F ) -> & mut Self where E : FuturesExecutor + Sync + ' static , F : Fn ( usize ) -> E + ' static , { let sb = move | t : usize | ExecutorScheduler :: from ( f ( t ) ) ; self . scheduler_builder = Rc :: new ( sb ) ; self }
Set a particular scheduler implementation based on a [FuturesExecutor](executors::FuturesExecutor)
Takes a function `f` from the number of threads to a concrete executor as argument.
Set a particular scheduler implementation based on a [ FuturesExecutor ] ( executors :: FuturesExecutor ) Takes a function ` f ` from the number of threads to a concrete executor as argument .
&mut self
f
F
&mut self
f
F