Skip to content

Commit

Permalink
task: make JoinHandle::abort_handle public
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkyPotato committed Mar 13, 2023
1 parent bfc4379 commit fa0a6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/task/join.rs
Expand Up @@ -252,7 +252,7 @@ impl<T> JoinHandle<T> {
}

/// Returns a new `AbortHandle` that can be used to remotely abort this task.
pub(crate) fn abort_handle(&self) -> super::AbortHandle {
pub fn abort_handle(&self) -> super::AbortHandle {
self.raw.ref_inc();
super::AbortHandle::new(self.raw)
}
Expand Down

0 comments on commit fa0a6ae

Please sign in to comment.