feat: add README.md
This commit is contained in:
10
__concurrent/async_study/examples/async4.rs
Normal file
10
__concurrent/async_study/examples/async4.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
fn main() {
|
||||
let rt = tokio::runtime::Runtime::new().unwrap();
|
||||
rt.block_on(async {
|
||||
invoke().await
|
||||
});
|
||||
}
|
||||
|
||||
async fn invoke() {
|
||||
println!("Hello World!");
|
||||
}
|
||||
Reference in New Issue
Block a user