Stabilize thread::is_finished

This commit is contained in:
Jubilee Young 2022-03-19 19:53:26 -07:00
parent 58f11791af
commit 5a25e228eb
2 changed files with 2 additions and 2 deletions

View File

@ -1471,7 +1471,7 @@ pub fn join(self) -> Result<T> {
///
/// This function does not block. To block while waiting on the thread to finish,
/// use [`join`][Self::join].
#[unstable(feature = "thread_is_running", issue = "90470")]
#[stable(feature = "thread_is_running", since = "1.61.0")]
pub fn is_finished(&self) -> bool {
Arc::strong_count(&self.0.packet) == 1
}

View File

@ -316,7 +316,7 @@ pub fn join(self) -> Result<T> {
///
/// This function does not block. To block while waiting on the thread to finish,
/// use [`join`][Self::join].
#[unstable(feature = "thread_is_running", issue = "90470")]
#[stable(feature = "thread_is_running", since = "1.61.0")]
pub fn is_finished(&self) -> bool {
Arc::strong_count(&self.0.packet) == 1
}