Add tracking issue for thread_is_running.

This commit is contained in:
Mara Bos
2021-11-01 15:04:24 +01:00
parent 67362b301b
commit 978ebd9c8c
+1 -1
View File
@@ -1407,7 +1407,7 @@ pub fn join(mut self) -> Result<T> {
///
/// This might return `false` for a brief moment after the thread's main
/// function has returned, but before the thread itself has stopped running.
#[unstable(feature = "thread_is_running", issue = "none")]
#[unstable(feature = "thread_is_running", issue = "90470")]
pub fn is_running(&self) -> bool {
Arc::strong_count(&self.0.packet.0) > 1
}