projects
/
rust_exercises.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5660a2f
)
Ch-08 Futures Exercise 02: Fix typo (#106)
author
Palash Nigam (He/Him)
<npalash25@gmail.com>
Sat, 29 Jun 2024 22:18:46 +0000
(
03:48
+0530)
committer
GitHub
<noreply@github.com>
Sat, 29 Jun 2024 22:18:46 +0000
(
00:18
+0200)
book/src/08_futures/02_spawn.md
patch
|
blob
|
history
diff --git
a/book/src/08_futures/02_spawn.md
b/book/src/08_futures/02_spawn.md
index
e4c221a
..
369911e
100644
(file)
--- 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.