Ch-08 Futures Exercise 02: Fix typo (#106)
Some checks are pending
CI / build (push) Waiting to run
CI / formatter (push) Waiting to run

This commit is contained in:
Palash Nigam (He/Him) 2024-06-30 03:48:46 +05:30 committed by GitHub
parent 5660a2f7a8
commit de45f8adf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ pub async fn work() {
### `std::thread::spawn` vs `tokio::spawn` ### `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. 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. You're not in control of how threads are scheduled.