fn run_interval<F>(&mut self, dur: Duration, f: F) -> SpawnHandle
    where
        F: FnMut(&mut A, &mut A::Context) + 'static,
    {
        self.spawn(IntervalFunc::new(dur, f).finish())
    }
/// Spawns a job to execute the given closure periodically, at a
/// specified fixed interval.
Spawns a job to execute the given closure periodically, at a
specified fixed interval.
Spawns a job to execute the given closure periodically at a specified fixed interval .
fn run_interval<F>(&mut self, dur: Duration, f: F) -> SpawnHandle
    where
        F: FnMut(&mut A, &mut A::Context) + 'static,
    {
        self.spawn(IntervalFunc::new(dur, f).finish())
    }
fn run_interval < F > ( & mut self , dur : Duration , f : F ) -> SpawnHandle where F : FnMut ( & mut A , & mut A :: Context ) + ' static , { self . spawn ( IntervalFunc :: new ( dur , f ) . finish ( ) ) }
Spawns a job to execute the given closure periodically, at a
specified fixed interval.
Spawns a job to execute the given closure periodically at a specified fixed interval .
&mut self
dur
Duration
f
F
&mut self
dur
Duration
f
F