-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
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.
FauxFaux, kkocdko, Calandiel, jkilpatr, fdelu and 1 morekkocdko and jkilpatr
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.