Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    endpoints: &[ResolvedEndpoint],
    cmds: &[InjectionCommand],
    dry_run: bool,
) -> DispatchReport
Expand description

Dispatch cmds to every endpoint, isolating per-endpoint failures. When dry_run is set, render what WOULD be sent without executing.

A multi-endpoint target (a group, bd-bfc5a2) fans out CONCURRENTLY — one scoped thread per endpoint — so a broadcast completes in ~the time of its slowest member instead of the sum, while the report stays in endpoint order.