Open
Description
This is a tracking issue for a for await
loop variant that makes it easier to work with async iterators (#79024).
The feature gate for the issue is #![feature(async_for_loop)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Get consensus on design, and if we even want this feature
- Implement the feature
- Adjust documentation (see instructions on rustc-dev-guide)
- Formatting for new syntax has been added to the Style Guide (nightly-style-procedure)
- Stabilization PR (see instructions on rustc-dev-guide)
Dependencies
- Tracking Issue for #![feature(async_iterator)] #79024
- The design for
AsyncIterator
still doesn't have consensus, and naturally the desugaring offor await
will depend on this. Fortunately, the desugaring is an implementation detail so we aren't necessarily blocked on experimentation by that design.
- The design for
Unresolved Questions
This is an early experimental feature, so basically every question is still unresolved.
Implementation history
Metadata
Metadata
Assignees
Labels
Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(async_for_loop)]`Relevant to the language team, which will review and decide on the PR/issue.Working group: Async & await
Type
Projects
Status
Exploration