Ch-08 Futures Exercise 02: Fix typo (#106)

This commit is contained in:
Palash Nigam (He/Him) authored and GitHub committed 2024-06-30 00:18:46 +02:00
1 parent 5660a2f7a8
commit de45f8adf2
1 file changed
+1 -1
+1 -1
View File
@@ -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.