mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-05-15 09:48:45 +00:00
Refer to tokio as "mainstream" instead of "popular"
This commit is contained in:
parent
db67a3d8c2
commit
5f9718cd2e
@ -5,7 +5,7 @@ It is particularly efficient for applications where many independent IO-operatio
|
||||
|
||||
Rust provides the necessary primitives to do asynchronous programming in the language.
|
||||
However, Rust's standard library does not include a runtime.
|
||||
For these exercises, we will use the popular runtime called `tokio`.
|
||||
For these exercises, we will use the mainstream runtime called `tokio`.
|
||||
|
||||
## Further information
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user