Function square_roots_parallel
Source pub async fn square_roots_parallel(numbers: Vec<f64>) -> Result<Vec<f64>>
Expand description
Computes the square roots of a list of numbers asynchronously using parallel processing for heavy workloads.
§Arguments
numbers: A vector of numbers (all must be non-negative).
§Returns
Ok(Vec<f64>) if all computations are successful.
Err(anyhow::Error) if any input number is negative.