Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cause#toString is not stack-safe #9638

@kyri-petrou

Description

@kyri-petrou

Repro:

import zio.*

object Foo extends ZIOAppDefault {
  def works = ZIO.foreachParDiscard(1 to 1_000_000)(_ => ZIO.fail("Boom")).fold(_.toString, identity)

  def run = ZIO.foreachParDiscard(1 to 1_000_000)(_ => ZIO.fail("Boom")).foldCause(_.toString, identity) // SO error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions