-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for JoinHandle::is_finished #90470
Comments
I think the unresolved questions above can be ideas for future additions, but aren't blockers for this API. @rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
I feel like the comment on the PR about That said, the type signature ( Given those constraints, this seems like a reasonable API. However, I think I'm going to submit a PR for the documentation, to steer people away from tight-polling on it, and document the intended use case. @rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Hm. At the risk of getting philosophical, what does it mean for a thread to be "running", if this would return And did this get answered in the negative?
|
I think the question that you are usually asking is "has this thread finished running" rather than "is this thread still running". Perhaps this function could be inverted and renamed to "is_finished"? |
While an async method was decided against, I will note Poll uses the idiom |
+1 for @Amanieu's suggestion. |
As suggested above, let's rename to @rfcbot cancel |
@m-ou-se proposal cancelled. |
Would it make sense to document that if |
Sounds good. |
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Let's try again with the new name. Now it's @rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
…-ou-se Stabilize thread::is_finished Closes rust-lang#90470. r? `@m-ou-se`
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_finished
instead?The text was updated successfully, but these errors were encountered: