diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-31 04:57:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 04:57:25 +0200 |
| commit | 32c5a57a00c234d5bcbba6c3d5ab638d3dd54494 (patch) | |
| tree | e46b4e565699f213530d35985099033096b6ec0f /library/std/src/thread | |
| parent | a39ac5ae175e0f9f910b1800a430b488ec0f2105 (diff) | |
| parent | 25eb06077997bca0b20f0ef7d828672a8140519e (diff) | |
| download | rust-32c5a57a00c234d5bcbba6c3d5ab638d3dd54494.tar.gz rust-32c5a57a00c234d5bcbba6c3d5ab638d3dd54494.zip | |
Rollup merge of #95130 - workingjubilee:stably-finished, r=m-ou-se
Stabilize thread::is_finished Closes #90470. r? `@m-ou-se`
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 2 | ||||
| -rw-r--r-- | library/std/src/thread/scoped.rs | 1 |
2 files changed, 1 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..eeccc99b3a3 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -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]. - #[unstable(feature = "thread_is_running", issue = "90470")] pub fn is_finished(&self) -> bool { Arc::strong_count(&self.0.packet) == 1 } |
