Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document the stabilized surface of async-await #634

Open
3 of 4 tasks
nikomatsakis opened this issue Jul 10, 2019 · 7 comments
Open
3 of 4 tasks

document the stabilized surface of async-await #634

nikomatsakis opened this issue Jul 10, 2019 · 7 comments
Assignees
Labels
A-async Area: async / await

Comments

@nikomatsakis
Copy link
Contributor

nikomatsakis commented Jul 10, 2019

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 effects
  • grammar for async move { } blocks
  • grammar for await expressions, and describe the "rough" desugaring
  • link to the drop order when that is fully documented
@nikomatsakis
Copy link
Contributor Author

I am taking a first pass at this.

@nikomatsakis nikomatsakis self-assigned this Jul 10, 2019
@ehuss ehuss added the A-async Area: async / await label Apr 4, 2020
@alercah
Copy link
Contributor

alercah commented Apr 16, 2020

Async closures are missing.

@nikomatsakis
Copy link
Contributor Author

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
Copy link
Contributor Author

@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
Copy link
Contributor

alercah commented Apr 16, 2020 via email

@cramertj
Copy link
Member

I would guess the drop order bit has to do with the changes we made around when _ arguments to async functions get dropped.

@kpreid
Copy link
Contributor

kpreid commented Aug 2, 2024

Another thing that is currently undocumented is async block/fn future types, as types. I filed #1555 for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-async Area: async / await
Projects
None yet
Development

No branches or pull requests

5 participants