pub trait JoinHandle: Send + Debug {
// Required methods
fn abort(&self);
fn is_finished(&self) -> bool;
fn poll_join(&mut self, cx: &mut Context<'_>) -> Poll<()>;
}Expand description
A task spawned with Runtime::spawn. Dropping it detaches the task.
Required Methods§
Sourcefn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Whether the task has ended (finished or cancelled).
Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".