Skip to content

Commit

Permalink
Don't stabilize ScopedJoinHandle::is_finished yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Mar 30, 2022
1 parent 5a25e22 commit 25eb060
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/std/src/thread/scoped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
///
/// This function does not block. To block while waiting on the thread to finish,
/// use [`join`][Self::join].
#[stable(feature = "thread_is_running", since = "1.61.0")]
pub fn is_finished(&self) -> bool {
Arc::strong_count(&self.0.packet) == 1
}
Expand Down

0 comments on commit 25eb060

Please sign in to comment.