Type Alias interval_task::runner::TaskWithHandle
source · pub type TaskWithHandle<T> = Box<dyn Send + FnMut(&mut T) -> bool + 'static>;Expand description
return true to break the loop and stop runner
don’t forget you can call Runner::join to wait for runner thread to finish
for arg, see CtxFunc<T>
Aliased Type§
struct TaskWithHandle<T>(/* private fields */);