Struct futures::executor::JoinHandle [] [src]

#[must_use]
pub struct JoinHandle<T, E> { /* fields omitted */ }

The type of future returned from the ThreadPool::spawn function, which proxies the futures running on the thread pool.

This future will resolve in the same way as the underlying future, and it will propagate panics.

Methods

impl<T, E> JoinHandle<T, E>
[src]

[src]

Drop this handle without canceling the underlying future.

When JoinHandle is dropped, ThreadPool will try to abort the associated task. This function can be used when you want to drop the handle but keep executing the task.

Trait Implementations

impl<T, E> Future for JoinHandle<T, E> where
    E: 'static + Send,
    T: 'static + Send
[src]

A successful value

An error

[src]

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

impl<T, E> Debug for JoinHandle<T, E> where
    E: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, E> Send for JoinHandle<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for JoinHandle<T, E> where
    E: Send,
    T: Send