Crates.io | alligator |
lib.rs | alligator |
version | 0.1.0 |
source | src |
created_at | 2018-12-07 17:54:52.790986 |
updated_at | 2018-12-07 17:54:52.790986 |
description | Alligator is for getting the output value from a future |
homepage | |
repository | https://github.com/gpace1/alligator/ |
max_upload_size | |
id | 100665 |
size | 15,287 |
Alligator is a small crate for getting the output value from a future
#![feature(async_await)]
#![feature(futures_api)]
#[macro_use] extern crate alligator;
async fn hello_world() -> &'static str {
"Hello World"
}
fn main() {
println!("{}", later!{ hello_world() });
}