pub async fn wait_for_first_error(tasks: Vec<NamedTask>) -> Result<()>Expand description
Wait for the first task to complete and convert the outcome into a
single Result.
All three exit conditions (clean exit, error, panic) are treated as errors because long-running tasks are not expected to return.