Skip to content

Instantly share code, notes, and snippets.

@brandonros
Created July 16, 2018 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonros/5cf521966a00a8eed00be043ad942958 to your computer and use it in GitHub Desktop.
Save brandonros/5cf521966a00a8eed00be043ad942958 to your computer and use it in GitHub Desktop.
#![feature(async_await, await_macro, futures_api)]
async fn inc(limit: i64) -> i64 {
limit + 1
}
fn main() {
let result = await!(inc(10000));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment