async fn send_to_workers(
workers: &Arc<Mutex<Vec<WorkerSender<Result<Instruction, Status>>>>>,
worker_id: u32,
instruction: Instruction,
inter_worker_interval: u64,
)Expand description
Send an instruction to workers according to the specified parameters.
ยงArguments
workers- registry of worker sendersworker_id- target:ALL_WORKERSfor broadcast, or a specific worker IDinstruction- the instruction to sendinter_worker_interval- seconds between workers for broadcast sends