I have following application that I could not figure it out, why running it twice it breaks RT:
val program = for {
_ <- IO { println("Welcome to Scala! What's your name?") }
_ <- IO { println(s"Well hello, foo") }
} yield ()
program.unsafeRunSync()
program.unsafeRunSync()
I run it twice and got the same result twice, why it breaks RT?