Return a handle that can cancel this task.
(&self)
| 28 | impl<T> JoinHandle<T> { |
| 29 | /// Return a handle that can cancel this task. |
| 30 | pub fn abort_handle(&self) -> AbortHandle { |
| 31 | self.abort.clone() |
| 32 | } |
| 33 | |
| 34 | /// Drop the join handle without cancelling the task. |
| 35 | pub fn detach(self) { |