Open
Description
This issue is part of async-await stabilization (see rust-lang/rust#62149). We need to document the following things:
- grammar for
async fn
and describe their effectsgrammar forasync move { }
blocksgrammar forawait
expressions, and describe the "rough" desugaringlink to the drop order when that is fully documented
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
nikomatsakis commentedon Jul 10, 2019
I am taking a first pass at this.
alercah commentedon Apr 16, 2020
Async closures are missing.
nikomatsakis commentedon Apr 16, 2020
Async closures are not stabilized, and this issue was specific to stabilized surface area -- actually, I think we can probably close this? I'm not sure what I meant by 'document the drop order'.
nikomatsakis commentedon Apr 16, 2020
@cramertj or @withoutboats do you have any idea what I might have meant by "link to drop order when that is stabilized"?
I do know that @matthewjasper recently opened a PR about #514 drop scopes which I think mentioned something about drop order here...
alercah commentedon Apr 16, 2020
cramertj commentedon Apr 22, 2020
I would guess the drop order bit has to do with the changes we made around when
_
arguments to async functions get dropped.kpreid commentedon Aug 2, 2024
Another thing that is currently undocumented is async block/fn future types, as types. I filed #1555 for that.