Skip to main content

sequential_with_index

Function sequential_with_index 

Source
pub async fn sequential_with_index<T, R, F>(items: T, f: F) -> Vec<R>
where T: IntoIterator<Item = R>, F: FnMut(R, usize) -> Pin<Box<dyn Future<Output = R> + Send>>, R: Debug,
Expand description

Run async functions sequentially with index, waiting for each to complete.