From de45f8adf21f1f7677910de884ff0723ea3b6efc Mon Sep 17 00:00:00 2001 From: "Palash Nigam (He/Him)" Date: Sun, 30 Jun 2024 03:48:46 +0530 Subject: [PATCH] Ch-08 Futures Exercise 02: Fix typo (#106) --- book/src/08_futures/02_spawn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.