Skip to content

Commit

Permalink
Add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
sainad2222 committed Aug 9, 2024
1 parent d565db7 commit d2f003b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/task/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl<T> JoinHandle<T> {
/// # }
/// ```
/// [cancelled]: method@super::error::JoinError::is_cancelled
#[must_use]
#[must_use = "abort handles do nothing unless `.abort` is called"]
pub fn abort_handle(&self) -> super::AbortHandle {
self.raw.ref_inc();
super::AbortHandle::new(self.raw)
Expand Down

0 comments on commit d2f003b

Please sign in to comment.