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]
impl<T, E> JoinHandle<T, E>
pub fn forget(self)
[src]
pub fn forget(self)
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: Debug, E: Debug> Debug for JoinHandle<T, E>
[src]
impl<T: Debug, E: Debug> Debug for JoinHandle<T, E>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Send + 'static, E: Send + 'static> Future for JoinHandle<T, E>
[src]
impl<T: Send + 'static, E: Send + 'static> Future for JoinHandle<T, E>
Auto Trait Implementations
impl<T, E> Send for JoinHandle<T, E> where
E: Send,
T: Send,
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,
impl<T, E> Sync for JoinHandle<T, E> where
E: Send,
T: Send,