pub fn exec_sched_single<T: Executable<Error = E> + Send + 'static + ?Sized, E: Send + 'static>(
executable: Box<T>,
task_freq: Option<Duration>,
op_code: i32,
termination: Option<BusReader<()>>,
) -> Result<JoinHandle<Result<OpResult, E>>, Error>Available on crate feature
std only.Expand description
This function allows executing one task which implements the Executable trait
ยงArguments
executable: Executable tasktask_freq: Optional frequency of task. Required for periodic and fixed cycle tasks. If None is passed, no sleeping will be performed.op_code: Operation code which is passed to the executable task operation calltermination: Optional termination handler which can cancel threads with a broadcast