Don't stabilize ScopedJoinHandle::is_finished yet.

This commit is contained in:
Mara Bos 2022-03-30 13:59:27 +02:00 committed by GitHub
parent 5a25e228eb
commit 25eb060779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,7 +316,6 @@ pub fn join(self) -> Result<T> {
///
/// This function does not block. To block while waiting on the thread to finish,
/// use [`join`][Self::join].
#[stable(feature = "thread_is_running", since = "1.61.0")]
pub fn is_finished(&self) -> bool {
Arc::strong_count(&self.0.packet) == 1
}