pub struct AsyncGroup { /* private fields */ }Available on crate feature
tokio only.Expand description
Manages a collection of asynchronous tasks, allowing them to be executed concurrently and their results (or errors) collected.
Implementations§
Source§impl AsyncGroup
impl AsyncGroup
Sourcepub fn add<Fut>(&mut self, future: Fut)
pub fn add<Fut>(&mut self, future: Fut)
Adds a future to the AsyncGroup to be executed concurrently.
The provided future will be polled along with others in this group.
§Arguments
future- The future to add. It must implementFuture<Output = errs::Result<()>>,Send, and have a'staticlifetime.
Auto Trait Implementations§
impl Freeze for AsyncGroup
impl !RefUnwindSafe for AsyncGroup
impl Send for AsyncGroup
impl !Sync for AsyncGroup
impl Unpin for AsyncGroup
impl UnsafeUnpin for AsyncGroup
impl !UnwindSafe for AsyncGroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more