-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 core::future::join!
#91642
Comments
The @rust-lang/wg-async-foundations group was not notified of #91645 prior to merging. Tagging here to ensure the right people get the notification that this was merged into unstable. |
I don't think that Personally I've found the abstractions provided in Because of the size of the topic, I would like to see a project group started as part of the async foundations WG, tasked with describing a coherent model for async concurrency in Rust. The goal would be to produce an RFC + implementation of async concurrency adapters for the stdlib, which can then be implemented as part of the stdlib. Which brings us back to what to do with
I want to ensure we don't accidentally stabilize this feature without having considered the much wider topic of creating a coherent model and corresponding interfaces for async concurrency in Rust. Footnotes
|
I agree w/ @yoshuawuyts and don't have much else to add. Tokio added |
@carllerche - I was wondering if you could provide more details about your experience here? What did new devs find complicated about |
Is there a better way to accomplish parallel await than with this feature? My use-case is basically the example here: |
@cryptoquick the stdlib doesn't provide any other APIs for concurrenly Additionally I've been experimenting with alternative static async concurrency designs and writing about them in my blog, with the intent of arriving at a design we can put forward for stabilization. There's a crate published now too: As I mentioned in #91642 (comment) adding async concurrency APIs to the stdlib is a large enough topic that it should go through an RFC. Until we've done that, I think it's unlikely we'll be seeing any concurrency functionality stabilized in the stdlib. I hope that answers your question! |
Should it accept |
Looks like the current implementation is possibly unsound: rust-lang/miri#3780. |
Turns out |
Feature gate:
#![feature(future_join)]
This is a tracking issue for
core::future::join!
, which polls multiple futures concurrently and returns their outputs.Public API
Steps / History
core::future::join!
#91645future::join!
's implementation #91721Unresolved Questions
await_all!
vsjoin!
join/and
method onFuture
:a.and(b).await
IntoFuture
for N-arity tuples?let (a, b, c) = (a, b, c).await
The text was updated successfully, but these errors were encountered: