winrt-rust
winrt-rust copied to clipboard
Support await syntax for async methods
This should be possible with Rust's coroutines support, see https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html and https://github.com/rust-lang/rust/issues/43122.
We might need to provide our own macros similar to https://github.com/alexcrichton/futures-await.
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!