Function interval_task::runner::new_runner
source ยท pub fn new_runner<T: 'static>(
interval: Duration,
ctx_func: impl Send + 'static + FnOnce() -> T,
task: impl Send + 'static + FnMut(&mut T) -> bool,
) -> Runner<T>Expand description
this function accepts raw impl FnMut
if you have func within box, use Runner::new