#[must_use]
pub struct JoinHandle<T> { /* 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.
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.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
🔬 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