Skip to content

document the stabilized surface of async-await #634

Open
@nikomatsakis

Description

@nikomatsakis
Contributor

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

Activity

nikomatsakis

nikomatsakis commented on Jul 10, 2019

@nikomatsakis
ContributorAuthor

I am taking a first pass at this.

self-assigned this
on Jul 10, 2019
alercah

alercah commented on Apr 16, 2020

@alercah
Contributor

Async closures are missing.

nikomatsakis

nikomatsakis commented on Apr 16, 2020

@nikomatsakis
ContributorAuthor

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

nikomatsakis commented on Apr 16, 2020

@nikomatsakis
ContributorAuthor

@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

alercah commented on Apr 16, 2020

@alercah
Contributor
cramertj

cramertj commented on Apr 22, 2020

@cramertj
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

kpreid commented on Aug 2, 2024

@kpreid
Contributor

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

Metadata

Metadata

Assignees

Labels

A-asyncArea: async / await

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @ehuss@nikomatsakis@kpreid@cramertj@alercah

      Issue actions

        document the stabilized surface of async-await · Issue #634 · rust-lang/reference