Stabilize thread::is_finished
This commit is contained in:
parent
58f11791af
commit
5a25e228eb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue