Skip to content

Begin to use async/await in pants #7473

Closed
@stuhood

Description

@stuhood

See http://areweasyncyet.rs/. Blocked on rust-lang/rust#50547.

I've experimented with this a little bit using the instructions from https://jsdw.me/posts/rust-asyncawait-preview/ ... although I used a slightly older nightly (February 2019), it's clear that there will be a fair number of limitations in place when this stabilizes:

I've pushed the branch I was working in over here: master...twitter:stuhood/tokio-async-await ... the first few methods I attempted to adapt ran into the above issues, but I did find a good example to adapt, and the result was easier to read, did fewer allocations, and would require less cloning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions