Skip to content

await macro is not in libcore. #56767

Closed
Closed

Description

@WildCryptoFox

The await!() macro is defined in std but not in core, is there any reason for this?

Activity

  1. bjorn3 commented on Dec 13, 2018

    @bjorn3
    Member

    It uses thread local storage, which isnt available outside libstd.

  2. WildCryptoFox commented on Dec 13, 2018

    @WildCryptoFox
    Author
  3. Nemo157 commented on Dec 13, 2018

    @Nemo157
    Contributor

    It's intended to be moved to core at some point (there's a few ways to reimplement it, embrio-async's implementation is one but has some relatively spread out safety guarantees, adding the ability for generators to take resume arguments is another that I think would avoid needing any unsafe code at all).

    I thought this was already noted on the tracking issue (#50547), but looking at it again it doesn't appear so, adding this issue to the unresolved questions would probably be useful.

  4. WildCryptoFox commented on Dec 13, 2018

    @WildCryptoFox
    Author

    Thanks @Nemo157

  5. added
    AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 5, 2019
  6. nikomatsakis commented on Mar 5, 2019

    @nikomatsakis
    Contributor

    Marking as not blocking for stabilization. Obviously we want things to work from core eventually, but it's ok if that doesn't work to start. Moreover, the major blocker here is resolving how generator arguments should work -- once that works, it seems clear that we'll be able to solve this.

  7. cramertj commented on Sep 4, 2019

    @cramertj
    Member

    Closing this in favor of #56974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions