-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CE3] Kleisli Stack safety #2095
Labels
Comments
@ronanM Thanks for reporting and for the reproduction. I have a fix incoming. |
@vasilmkd "should be stack safe in long parTraverse chains" in ticked { implicit ticker =>
val N = 10000
Ref[IO].of(0).flatMap { ref =>
List
.fill(N)(0)
.parTraverse_(_ => Kleisli.liftF(ref.update(_ + 1)))
.run("Go...") *> ref.get
} must completeAs(N)
} |
Also typelevel/cats#3947 |
Even with Cats Effect 3.2.0? |
Yes. And it never worked on CE2 |
Bummer. I'll take a look. |
I have a fix for |
This was referenced Jul 25, 2021
Closed
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code is Ok with CE2, but fail with
StackOverflowError
in CE3.The text was updated successfully, but these errors were encountered: