exec_sched_multi

Function exec_sched_multi 

Source
pub fn exec_sched_multi<T: Executable<Error = E> + Send + 'static + ?Sized, E: Send + 'static>(
    task_name: &'static str,
    executable_vec: Vec<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 multiple tasks as long as the tasks implement the Executable trait

ยงArguments

  • executable_vec: Vector of executable objects
  • task_freq: Optional frequency of task. Required for periodic and fixed cycle tasks
  • op_code: Operation code which is passed to the executable task operation call
  • termination: Optional termination handler which can cancel threads with a broadcast