pub async fn do_stuff() { // ... } // elsewhere, inside a fn // as svnpenn points out let result = do_stuff().await;
https://developer.mozilla.org/Web/JavaScript/Reference/Opera...
chucksmash was concisely showing the syntax for an async function and how you can call it with await.
let result = do_stuff().await;
let result = await do_stuff();