Skip to main content

join_all_with_timeout

Function join_all_with_timeout 

Source
pub async fn join_all_with_timeout<T>(
    name: impl Into<String>,
    timeout: Duration,
    handles: Vec<JoinHandle<T>>,
) -> Vec<CheckResult>
Expand description

Verify that all spawned tasks finish within the given timeout.

Pass a vector of JoinHandles. Returns one CheckResult per task, plus an aggregate verdict.