pub fn run<F, T>(&mut self, f: F) -> &mut Self
    where
        F: 'static + FnMut() -> T + Send,
        T: 'static + Future<Output = ()> + Send,
    {
        self.job = Some(Box::new(JobWrapper::new(f)));
        self.schedule.start_schedule();
        self
    }
/// Specify a task to run, and schedule its next run
///
/// The function passed into this method should return a value implementing `Future<Output = ()>`.
Specify a task to run, and schedule its next run
The function passed into this method should return a value implementing `Future`.
Specify a task to run and schedule its next run The function passed into this method should return a value implementing ` Future ` .
pub fn run<F, T>(&mut self, f: F) -> &mut Self
    where
        F: 'static + FnMut() -> T + Send,
        T: 'static + Future<Output = ()> + Send,
    {
        self.job = Some(Box::new(JobWrapper::new(f)));
        self.schedule.start_schedule();
        self
    }
pub fn run < F , T > ( & mut self , f : F ) -> & mut Self where F : ' static + FnMut ( ) -> T + Send , T : ' static + Future < Output = ( ) > + Send , { self . job = Some ( Box :: new ( JobWrapper :: new ( f ) ) ) ; self . schedule . start_schedule ( ) ; self }
Specify a task to run, and schedule its next run
The function passed into this method should return a value implementing `Future<Output = ()>`.
Specify a task to run and schedule its next run The function passed into this method should return a value implementing ` Future<Output = () > ` .
&mut self
f
F