-
Notifications
You must be signed in to change notification settings - Fork 13k
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 once_wait
#127527
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. 🔔 |
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: