zio icon indicating copy to clipboard operation
zio copied to clipboard

zio-streams: Inconsistent behaviour for under multiple invocations Streams.take

Open TimPigden opened this issue 5 years ago • 0 comments

If you call take(n) on a stream more than once you get different behaviour depending on how the stream was created, even though it has the same elements. I presume it has something to do with chunking. In the attached file (also scastie https://scastie.scala-lang.org/T9nFGGKwRlKsaAS84mvzZg) the stream is created from queues and from iterables and leads to quite different results

StreamTakeTest.scala.txt

TimPigden avatar Nov 10 '20 07:11 TimPigden