Skip to content

Commit 99df494

Browse files
authored
Rollup merge of rust-lang#95130 - workingjubilee:stably-finished, r=m-ou-se
Stabilize thread::is_finished Closes rust-lang#90470. r? `@m-ou-se`
2 parents 7f9d46a + 25eb060 commit 99df494

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-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
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ 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")]
320319
pub fn is_finished(&self) -> bool {
321320
Arc::strong_count(&self.0.packet) == 1
322321
}

0 commit comments

Comments
 (0)