eRFC: Experimentally add coroutines to Rust by alexcrichton · Pull Request #2033 · rust-lang/rfcs

@alexcrichton

This is an **experimental RFC** for adding a new feature to the language,
coroutines (also commonly referred to as generators). This RFC is intended to be
relatively lightweight and bikeshed free as it will be followed by a separate
RFC in the future for stabilization of this language feature. The intention here
is to make sure everyone's on board with the *general idea* of
coroutines/generators being added to the Rust compiler and available for use on
the nightly channel.

@nikomatsakis added the T-lang

Relevant to the language team, which will review and decide on the RFC.

label

Jun 15, 2017

est31

@bestouff

@alexcrichton

@alexcrichton

@chpio chpio mentioned this pull request

Oct 7, 2017

This was referenced

Oct 17, 2019

spikespaz pushed a commit to spikespaz/dotwalk-rs that referenced this pull request

Aug 29, 2024
Generator support

This adds experimental support for generators intended to land once rust-lang/rfcs#2033 is approved.

This is not yet ready to be merged. Things to do:
- [x] Make closure arguments on generators an error
- [x] Spot FIXMEs
- [x] Pass make tidy
- [x] Write tests
- [x] Document the current syntax and semantics for generators somewhere
- [x] Use proper error message numbers
- [x] ~~Make the implicit argument type default to `()`~~

@rust-lang rust-lang locked as spam and limited conversation to collaborators

Jan 1, 2025