This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(async_await)] | |
pub async fn bar() -> u32{ | |
5 | |
} | |
pub async fn foo() -> u32{ | |
let z = bar().await; | |
5 + z | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(async_await)] | |
#[prelude_import] | |
use ::std::prelude::v1::*; | |
#[macro_use] | |
extern crate std as std; | |
pub async fn bar() | |
-> | |
::std::future::from_generator(move | |
|mut async_ctx: |
OlderNewer