Open
Description
This is a tracking issue for the RFC "2996" (rust-lang/rfcs#2996).
The feature gate for the issue is #![feature(async_iterator)]
.
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
- Implement the RFC (cc @rust-lang/XXX -- can anyone write up mentoring
instructions?) - Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Clarify the panic behavior of
Stream
andIterator
Addcore::stream::Stream
#79023 (comment)- Add a panic section to
Iterator
, clarifying panic behavior. The panic behavior betweenStream
andIterator
should be consistent.
- Add a panic section to
- Restore
Stream::next
. This was removed from the RFC because it prevents dynamic dispatch, and subsequently removed from the implementation. This should be resolved before stabilizing.- Investigate whether we can move the trait from
fn poll_next
toasync fn next
once we can useasync
in traits.
- Investigate whether we can move the trait from
- Investigate as part of keyword-generics whether we can merge
Iterator
andAsyncIterator
into a single trait which is generic over "asyncness". - Should we name this API
AsyncIterator
instead? Tracking Issue for #![feature(async_iterator)] #79024 (comment)
Implementation history
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitAsync-await issues that have been triaged during a working group meeting.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Relevant to the language team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.Working group: Async & await