Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
Scala backend development
When does the body of `IO.println("saved")` normally run?
from Scala backend development
Scala 3.9.0 / Cats Effect 3.7.1 / http4s 0.23.36 / Java 25 LTS
intermediate
1 min
When does the body of `IO.println("saved")` normally run?
Immediately when the `IO` value is constructed.
When the returned effect is executed by the Cats Effect runtime.
Only after the JVM garbage collector reaches the value.
On a new platform thread created for every `IO`.
Check
Ask AI about this kata
Report an error
previous kata
What does `IO.blocking(jdbcCall())` provide?
Quiz
next kata
What does this boundary parser print?
Predict the output
A new version is available
Reload