Is it possible with this crate to limit the number of concurrent spawned tasks in a scope?
For reference, I currently do this with unscoped tasks:
let mut stream = futures::stream::iter(futures).map(tokio::task::spawn).buffer_unordered(concurrent_limit);
while let Some(result) = stream.next().await {
// ... handle result
}
Is it possible with this crate to limit the number of concurrent spawned tasks in a scope?
For reference, I currently do this with unscoped tasks: