execute_batch

Function execute_batch 

Source
pub async fn execute_batch<T, I, F, Fut>(
    items: I,
    max_concurrency: usize,
    operation: F,
) -> Vec<Result<T, String>>
where I: IntoIterator, F: Fn(I::Item) -> Fut + Clone + Send + 'static, Fut: Future<Output = Result<T, String>> + Send + 'static, T: Send + 'static, I::Item: Send + 'static,
Expand description

Helper for executing a batch of similar operations concurrently.

This is a convenience function for common patterns like fetching metadata for multiple tables.