mirror of https://github.com/rust-lang/rfcs.git
Update 2394-async_await.md
'block_on' function might have been moved from futures module to futures::executor module. I wonder if the dependency used there should be state explicitly?
This commit is contained in:
parent
f4867a78bb
commit
6041dd9ff2
|
@ -89,7 +89,7 @@ async fn print_async() {
|
|||
fn main() {
|
||||
let future = print_async();
|
||||
println!("Hello from main");
|
||||
futures::block_on(future);
|
||||
futures::executor::block_on(future);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue