From: Palash Nigam (He/Him) Date: Sat, 29 Jun 2024 22:18:46 +0000 (+0530) Subject: Ch-08 Futures Exercise 02: Fix typo (#106) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=de45f8adf21f1f7677910de884ff0723ea3b6efc;p=rust_exercises.git Ch-08 Futures Exercise 02: Fix typo (#106) --- diff --git a/book/src/08_futures/02_spawn.md b/book/src/08_futures/02_spawn.md index e4c221a..369911e 100644 --- a/book/src/08_futures/02_spawn.md +++ b/book/src/08_futures/02_spawn.md @@ -112,7 +112,7 @@ pub async fn work() { ### `std::thread::spawn` vs `tokio::spawn` -You can think of `tokio::spawn` as the asynchronous sibling of `std::spawn::thread`. +You can think of `tokio::spawn` as the asynchronous sibling of `std::thread::spawn`. Notice a key difference: with `std::thread::spawn`, you're delegating control to the OS scheduler. You're not in control of how threads are scheduled.