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?"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:

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