I'd love to have an equivalent of tokio::task::JoinSet: a type that provides a spawn method, saves the join handle, and provides an operation to wait for the next task in the set to complete.
In addition to the methods provided by JoinSet, it'd also be nice to have an asynchronous spawn method that takes a concurrency limit, and if there are more than that number of items in the set, waits for the next task to complete before spawning another item.
I'd love to have an equivalent of
tokio::task::JoinSet: a type that provides aspawnmethod, saves the join handle, and provides an operation to wait for the next task in the set to complete.In addition to the methods provided by
JoinSet, it'd also be nice to have an asynchronous spawn method that takes a concurrency limit, and if there are more than that number of items in the set, waits for the next task to complete before spawning another item.