You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is relevant when the stream duplicates are consumed on different threads, which is (ignoring some edge cases) the only reasonable use-case for duplication AND consumption at equal rate.
The text was updated successfully, but these errors were encountered:
As correctly stated by Tagir Valeev, the current implementation of
Seq.duplicate()
isn't thread safe:http://stackoverflow.com/questions/23860533/copy-a-stream-to-avoid-stream-has-already-been-operated-upon-or-closed-java-8/25961951?noredirect=1#comment53095315_25961951
This is relevant when the stream duplicates are consumed on different threads, which is (ignoring some edge cases) the only reasonable use-case for duplication AND consumption at equal rate.
The text was updated successfully, but these errors were encountered: