Types for spawning and waiting on groups of tasks.
This crate provides onthe TaskCollection for the
grouping of spawned tasks. The TaskCollection type is created using a
Spawner implementation. Any tasks spawned via the
TaskCollections spawn
method are tracked with minimal overhead.
await
ing the TaskCollection will yield until all the spawned tasks for
that collection have completed.
The following example shows how to use a TaskCollection to wait for spawned tasks to finish:
# use TaskCollection;
# use mpsc;
# use StreamExt;
# use Duration;