Skip to main content

execute_scatter_gather

Function execute_scatter_gather 

Source
pub async fn execute_scatter_gather(
    fighters: &[FighterId],
    task: &str,
    router: &MessageRouter,
    coordinator: FighterId,
    _timeout: Duration,
    criteria: &SelectionCriteria,
) -> PunchResult<Option<ScatterResponse>>
Expand description

Execute the scatter-gather pattern: send a task to all capable fighters, wait for responses (with configurable timeout), and select the best result based on SelectionCriteria.