diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e7a11a9..0e1f7bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,10 @@ +use futures::executor::block_on; + +async fn hello_world() { + println!("hello, world!"); +} + fn main() { - println!("Hello, world!"); + let future = hello_world(); + block_on(future); } |
