mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-28 17:53:28 +00:00
Refer to tokio as "mainstream" instead of "popular"
This commit is contained in:
committed by
Mo Bitar
parent
579638cd5e
commit
00c1d3aa01
@@ -13,7 +13,7 @@ static CHORES_DONE: AtomicU8 = AtomicU8::new(0);
|
||||
|
||||
fn main() {
|
||||
// Async tasks need to be executed by a "runtime", which is not provided by
|
||||
// Rust's standard library. We use the popular "tokio" runtime here.
|
||||
// Rust's standard library. Here, we use the mainstream runtime `tokio`.
|
||||
let rt = tokio::runtime::Builder::new_current_thread()
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user