[−][src]Struct futures_util::task::JoinHandle
#[must_use = "futures do nothing unless polled"]pub struct JoinHandle<T> { /* fields omitted */ }
The join handle returned by
spawn_with_handle.
Methods
impl<T> JoinHandle<T>[src]
impl<T> JoinHandle<T>pub fn forget(self)[src]
pub fn forget(self)Drops this handle without canceling the underlying future.
This method can be used if you want to drop the handle, but let the execution continue.
Trait Implementations
impl<T: Debug> Debug for JoinHandle<T>[src]
impl<T: Debug> Debug for JoinHandle<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Send + 'static> Future for JoinHandle<T>[src]
impl<T: Send + 'static> Future for JoinHandle<T>type Output = T
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<T>[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<T>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
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
impl<T> Send for JoinHandle<T> where
T: Send,
impl<T> Send for JoinHandle<T> where
T: Send, impl<T> Sync for JoinHandle<T> where
T: Send,
impl<T> Sync for JoinHandle<T> where
T: Send,