Update on the await syntax after May 23 meeting

It’s very easy to write a macro:

macro_rules! wait {
    ($e:expr) => {
        $e.await
    }
}

Now you can use wait!(foo) instead of foo.await

There’s even a crate which does this for you.

There’s also a crate which adds in implicit await (if you prefer that).

6 Likes