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