summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2022-03-19 19:53:26 -0700
committerJubilee Young <workingjubilee@gmail.com>2022-03-19 19:53:26 -0700
commit5a25e228eb7df1f8d227460c577215e5c75794b2 (patch)
tree1682a7cdff321d98733a39774ae7e65a1c09111a /library/std/src/thread
parent58f11791af4f97572e7afd83f11cffe04bbbd12f (diff)
downloadrust-5a25e228eb7df1f8d227460c577215e5c75794b2.tar.gz
rust-5a25e228eb7df1f8d227460c577215e5c75794b2.zip
Stabilize thread::is_finished
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/mod.rs2
-rw-r--r--library/std/src/thread/scoped.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index ae292caaed9..5309dc47ac4 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -1471,7 +1471,7 @@ impl<T> JoinHandle<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
     }
diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs
index 07e113f3b62..e3da79932c7 100644
--- a/library/std/src/thread/scoped.rs
+++ b/library/std/src/thread/scoped.rs
@@ -316,7 +316,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, 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
     }