-
-
Notifications
You must be signed in to change notification settings - Fork 572
IO.syncStep leads to double execution #2858
Copy link
Copy link
Closed
Labels
Description
Hey guys,
I found which seems to me a critical bug during migration of codebase from ce2 to ce3
The code below prints hello twice, I would expect hello to be printed once.
IO
.apply { println("hello") }
.flatMap { _ => IO.cede }
.as(Succeeded)
.syncStep
.unsafeRunSync() match {
case Right(a) => Future.successful(a)
case Left(a) => a.unsafeToFuture()
}Reactions are currently unavailable