Skip to main content

run_compare

Function run_compare 

Source
pub async fn run_compare<FA, FutA, FB, FutB>(
    a: Leg<'_, FA>,
    b: Leg<'_, FB>,
    concurrency: usize,
) -> (Vec<Outcome>, Vec<Outcome>)
where FA: Fn(Session) -> FutA + Send + Sync + Clone + 'static, FutA: Future<Output = Outcome> + Send + 'static, FB: Fn(Session) -> FutB + Send + Sync + Clone + 'static, FutB: Future<Output = Outcome> + Send + 'static,
Expand description

Both pages of a comparison through one pool of workers: page a’s cases first, then b’s.

One pool rather than one per page, so --concurrency still means what it says — that many requests in the air, whichever page they are for.