(
items: Vec<I>,
run: F,
)
| 30 | |
| 31 | #[cfg(test)] |
| 32 | pub(crate) async fn run_ordered_parallel<I, F, Fut, T>( |
| 33 | items: Vec<I>, |
| 34 | run: F, |
| 35 | ) -> Vec<OrderedParallelResult<T>> |
| 36 | where |
| 37 | I: Send + 'static, |
| 38 | F: Fn(usize, I) -> Fut + Clone + Send + 'static, |
| 39 | Fut: Future<Output = T> + Send + 'static, |
| 40 | T: Send + 'static, |
| 41 | { |
| 42 | let item_count = items.len(); |
| 43 | run_ordered_parallel_with_limit(items, item_count.max(1), run).await |
| 44 | } |
| 45 | |
| 46 | pub(crate) async fn run_ordered_parallel_with_limit<I, F, Fut, T>( |
| 47 | items: Vec<I>, |
no test coverage detected