Version
1.0-RC1
Scala Version
3.7.2
Expected Behavior
val oups: Unit < (Sync & Var[Int]) =
Var.update[Int](_ + 1).map(i => Console.printLine(s"oups $i"))
val lifted: Unit < (Sync & Var[Int]) < Any = Kyo.lift(oups)
object Weird extends KyoApp:
lifted.handle(
Var.run(0), // make the program freeze
_.flatten,
Var.run(0),
run
)
should not freeze
Actual Behavior
it Freezes
Steps to Reproduce
No response
Current Workaround
No response