エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ついに正式対応されるRustのawait/asyncを1.39betaで確認してみた - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
ついに正式対応されるRustのawait/asyncを1.39betaで確認してみた - Qiita
#![allow(non_snake_case)] use std::{thread, time}; async fn foo1() { for i in 0..10 { std::thread... #![allow(non_snake_case)] use std::{thread, time}; async fn foo1() { for i in 0..10 { std::thread::sleep(time::Duration::from_millis(500)); println!("foo1:{} Thread[{:?}]", i, thread::current().id()); } } async fn foo2() { for i in 0..10 { std::thread::sleep(time::Duration::from_millis(500)); println!("foo2:{} Thread[{:?}]", i, thread::current().id()); } } #[runtime::main] async fn main() { let ha