Skip to content
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

Stream handler not applied correctly when mapping/flatMapping #735

Closed
mpilquist opened this issue Sep 16, 2016 · 0 comments
Closed

Stream handler not applied correctly when mapping/flatMapping #735

mpilquist opened this issue Sep 16, 2016 · 0 comments

Comments

@mpilquist
Copy link
Member

scala> Stream.fail(new RuntimeException).onError(Stream.emit).toList
res22: List[Throwable] = List(java.lang.RuntimeException)

scala> Stream.fail(new RuntimeException).onError(Stream.emit).map(identity).toList
java.lang.RuntimeException
  ... 42 elided

Originally spotted by @fiadliel in a larger example involving concurrent.join.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant