winrt-rust icon indicating copy to clipboard operation
winrt-rust copied to clipboard

Support await syntax for async methods

Open Boddlnagg opened this issue 7 years ago • 1 comments

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.

Boddlnagg avatar Jan 17 '18 17:01 Boddlnagg

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!

Boddlnagg avatar May 18 '19 10:05 Boddlnagg