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

Support await syntax for async methods #55

Open
Boddlnagg opened this issue Jan 17, 2018 · 1 comment
Open

Support await syntax for async methods #55

Boddlnagg opened this issue Jan 17, 2018 · 1 comment

Comments

@Boddlnagg
Copy link
Collaborator

This should be possible with Rust's coroutines support, see https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html and rust-lang/rust#43122.

We might need to provide our own macros similar to https://github.com/alexcrichton/futures-await.

@Boddlnagg
Copy link
Collaborator Author

I got a proof of concept running in a branch: I started working on this in a branch: https://github.com/Boddlnagg/winrt-rust/tree/futures-preview

I must say that it feels quite nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant