`unsafeRunAndForget()` doesn't log errors
Closed this issue · 0 comments
armanbilge commented
cats-effect/core/shared/src/main/scala/cats/effect/IO.scala
Lines 937 to 940 in a9eac6c
//> using lib "org.typelevel::cats-effect::3.5.0-RC3"
import cats.effect.*
import cats.effect.unsafe.implicits.*
@main def main =
IO.raiseError(new RuntimeException).unsafeRunAndForget()
Thread.sleep(1000)
[Hello darkness, my old friend]