Function rotor_tools::timer::interval_func [] [src]

pub fn interval_func<C, F>(
    scope: &mut Scope<C>,
    interval: Duration,
    fun: F
) -> Response<IntervalFunc<C>, Void> where
    F: FnMut(&mut Scope<C>) + 'static + Send

A helper function to create intervals from closures