mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Add tracking issue for thread_is_running.
This commit is contained in:
parent
67362b301b
commit
978ebd9c8c
@ -1407,7 +1407,7 @@ impl<T> JoinHandle<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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user