-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking Issue for once_wait
#127527
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
std: implement the `once_wait` feature Tracking issue: rust-lang#127527 This additionally adds a `wait_force` method to `Once` that doesn't panic on poison. I also took the opportunity and cleaned up up the code of the queue-based implementation a bit.
std: implement the `once_wait` feature Tracking issue: rust-lang#127527 This additionally adds a `wait_force` method to `Once` that doesn't panic on poison. I also took the opportunity and cleaned up up the code of the queue-based implementation a bit.
Rollup merge of rust-lang#127567 - joboet:once_wait, r=Amanieu std: implement the `once_wait` feature Tracking issue: rust-lang#127527 This additionally adds a `wait_force` method to `Once` that doesn't panic on poison. I also took the opportunity and cleaned up up the code of the queue-based implementation a bit.
This would be very useful, frankly I was surprised when I ran into the problem of |
I don't know about |
Requesting libs-api to consider stabilizing at least @rustbot label +I-libs-api-nominated |
@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. |
^ just to clarify what is in FCP, the meeting notes say
|
🔔 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. |
Rollup merge of rust-lang#136360 - slanterns:once_wait, r=tgross35 Stabilize `once_wait` Closes: rust-lang#127527. `@rustbot` label: +T-libs-api r? libs-api
Stabilize `once_wait` Closes: rust-lang#127527. `@rustbot` label: +T-libs-api r? libs-api
Feature gate:
#![feature(once_wait)]
This is a tracking issue for adding a blocking
.wait()
method onOnce
andOnceLock
, to allow other threads to synchronize on their completion. This will provide the same interface asonce_cell
'sOnceCell::wait
.Public API
Steps / History
OnceLock::wait
libs-team#405once_wait
feature #127567Unresolved Questions
Mutex
does not have async methods. This would probably get its own feature gate.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: