Skip to content

Commit

Permalink
Ch-08 Futures Exercise 02: Fix typo (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
palash25 authored Jun 29, 2024
1 parent 5660a2f commit de45f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/08_futures/02_spawn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit de45f8a

Please sign in to comment.