Is there a basic example of `std::await`?

Is there a basic example of std::await? Is it implemented in the nightly? I want to play with the new syntax.

I know about futures-await but as far as I know the way forward is to use std::await.

1 Like

A Github search for std::await only returns tokio code which renames the macro to std_await in order to avoid conflict with its own await. Is std::await even available or usable?
https://github.com/search?q=language%3ARust+"std%3A%3Aawait"&type=Code

The only real basic example of std::await I know of is in the original futures 0.3 blog post:

https://rust-lang-nursery.github.io/futures-rs/blog/2018/07/19/futures-0.3.0-alpha.1.html

I think that should still work as-is on the current nightly.