Skip to content

Commit 5a25e22

Browse files
Stabilize thread::is_finished
1 parent 58f1179 commit 5a25e22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/thread/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ impl<T> JoinHandle<T> {
14711471
///
14721472
/// This function does not block. To block while waiting on the thread to finish,
14731473
/// use [`join`][Self::join].
1474-
#[unstable(feature = "thread_is_running", issue = "90470")]
1474+
#[stable(feature = "thread_is_running", since = "1.61.0")]
14751475
pub fn is_finished(&self) -> bool {
14761476
Arc::strong_count(&self.0.packet) == 1
14771477
}

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
316316
///
317317
/// This function does not block. To block while waiting on the thread to finish,
318318
/// use [`join`][Self::join].
319-
#[unstable(feature = "thread_is_running", issue = "90470")]
319+
#[stable(feature = "thread_is_running", since = "1.61.0")]
320320
pub fn is_finished(&self) -> bool {
321321
Arc::strong_count(&self.0.packet) == 1
322322
}

0 commit comments

Comments
 (0)