tokio
rs#[tokio::main]
async fn main() {
println!("hello");
}
↑は、↓のように変換される
rsfn main() {
let mut rt = tokio::runtime::Runtime::new().unwrap();
rt.block_on(async {
println!("hello");
})
}
非同期タスクのスケジューリング(軽量スレッドのような仕組み)。
非同期I/O(ファイル、ネットワーク通信、タイマーなど)の提供。
広く採用されている