zio
zio copied to clipboard
zio-streams: Inconsistent behaviour for under multiple invocations Streams.take
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