Skip to content

Commit

Permalink
Merge pull request #3881 from typelevel/doc/fix-starve-thyself
Browse files Browse the repository at this point in the history
Fix starvation demo app in tuning guide
  • Loading branch information
armanbilge authored Nov 3, 2023
2 parents 40f6619 + b7ca0bf commit 4fe0952
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/core/starvation-and-tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ import cats.syntax.all._
object StarveThyself extends IOApp.Simple {
val run =
0.until(100).toList parTraverse_ { i =>
IO.println(s"running #$i") >> IO(Thread.sleep(10000))
IO {
println(s"running #$i")
Thread.sleep(10000)
}
}
}
```
Expand Down

0 comments on commit 4fe0952

Please sign in to comment.