We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fs2 version: 3.11.0 scala version: 3.3.4
Scastie
The following code snippet throws a java.util.NoSuchElementException: None.get, which means that the stream is hanging.
java.util.NoSuchElementException: None.get
I expect it to throw java.lang.Exception: boom instead.
java.lang.Exception: boom
import cats.effect.IO import cats.effect.unsafe.implicits.global import scala.concurrent.duration.DurationInt fs2.Stream .emit[IO, Byte](1) .evalTap(_ => IO.raiseError(new Exception("boom"))) .broadcastThrough(in => fs2.io.readOutputStream(1) { out => in.evalMap(b => IO.interruptible(out.write(b))).compile.drain } ) .compile .drain .unsafeRunTimed(2.second) .get
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
fs2 version: 3.11.0
scala version: 3.3.4
Scastie
The following code snippet throws a
java.util.NoSuchElementException: None.get
, which means that the stream is hanging.I expect it to throw
java.lang.Exception: boom
instead.The text was updated successfully, but these errors were encountered: