Struct async_task_group::GroupJoinHandle[][src]

pub struct GroupJoinHandle<E> { /* fields omitted */ }
Expand description

A JoinHandle is used to manage a collection of tasks. There are two things you can do with it:

  • JoinHandle impls Future, so you can poll or await on it. It will be Ready when all tasks return Ok(()) and the associated TaskGroup is dropped (so no more tasks can be created), or when any task panicks or returns an Err(E).
  • When a JoinHandle is dropped, all tasks it contains are canceled (terminated). So, if you use a combinator like tokio::time::timeout(duration, task_manager).await, all tasks will be terminated if the timeout occurs.

Trait Implementations

Formats the value using the given formatter. Read more

The type of value produced on completion.

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Returns a Future that delays execution for a specified time. Read more

Flatten out the execution of this future when the result itself can be converted into another future. Read more

Waits for one of two similarly-typed futures to complete. Read more

Waits for one of two similarly-typed fallible futures to complete. Read more

Waits for two similarly-typed futures to complete. Read more

Waits for two similarly-typed fallible futures to complete. Read more

Waits for both the future and a timeout, if the timeout completes before the future, it returns an TimeoutError. Read more

A convenience for calling Future::poll() on !Unpin types.

Returns the result of self or other future, preferring self if both are ready. Read more

Returns the result of self or other future, with no preference if both are ready. Read more

Catches panics while polling the future. Read more

Boxes the future and changes its type to dyn Future + Send + 'a. Read more

Boxes the future and changes its type to dyn Future + 'a. Read more

Performs the conversion.

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

🔬 This is a nightly-only experimental API. (into_future)

Creates a future from a value.

The type of value produced on completion.

Which kind of future are we turning this into?

Create a future from a value

The type returned in the event of a conversion error.

Performs the conversion.

The type of successful values yielded by this future

The type of failures yielded by this future

Poll this TryFuture as if it were a Future. Read more

The type returned in the event of a conversion error.

Performs the conversion.