Skip to main content

parallel_join

Function parallel_join 

Source
pub async fn parallel_join<F1, F2, R1, R2>(
    pool: &ComputePool,
    f1: F1,
    f2: F2,
) -> Result<(R1, R2)>
where F1: FnOnce() -> R1 + Send + 'static, F2: FnOnce() -> R2 + Send + 'static, R1: Send + 'static, R2: Send + 'static,
Expand description

Execute two functions in parallel and return both results