Skip to content

Tracking Issue for for await loops #118898

Open
@eholk

Description

@eholk

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

Dependencies

  • Tracking Issue for #![feature(async_iterator)] #79024
    • The design for AsyncIterator still doesn't have consensus, and naturally the desugaring of for await will depend on this. Fortunately, the desugaring is an implementation detail so we aren't necessarily blocked on experimentation by that design.

Unresolved Questions

This is an early experimental feature, so basically every question is still unresolved.

Implementation history

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-async_for_loop`#![feature(async_for_loop)]`T-langRelevant to the language team, which will review and decide on the PR/issue.WG-asyncWorking group: Async & await

    Type

    No type

    Projects

    Status

    Exploration

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions