Feature gate: `#![feature(thread_is_running)]` ### Public API ```rust impl<T> JoinHandle<T> { pub fn is_finshed(&self) -> bool; } ``` ### Steps / History - [x] Implementation: https://github.com/rust-lang/rust/pull/90439 - [ ] ~~First Final comment period (FCP)~~: https://github.com/rust-lang/rust/issues/90470#issuecomment-1040742419 - [x] Rename it to `is_finished`: https://github.com/rust-lang/rust/pull/94549 - [x] Final comment period (FCP): https://github.com/rust-lang/rust/issues/90470#issuecomment-1062728858 - [x] Stabilization PR: https://github.com/rust-lang/rust/pull/95130 ### Unresolved Questions - [x] Do we also want to provide a way to access the result of the thread without having to .join() it? See https://github.com/rust-lang/rust/pull/90439#issuecomment-956256273 - Answer: Maybe, but not a blocker for this feature. - [x] Do we also want this in the form of a Future? See https://github.com/rust-lang/rust/pull/90439#issuecomment-955746106 - Answer: Maybe, but not a blocker for this feature. - [x] Name it `is_finished` instead? - Answer: Yes.
Feature gate:
#![feature(thread_is_running)]Public API
Steps / History
First Final comment period (FCP): Tracking Issue for JoinHandle::is_finished #90470 (comment)is_finished: Rename JoinHandle::is_running to is_finished. #94549Unresolved Questions
is_finishedinstead?