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
Since concurrently doesn't guarantee that the foreground stream is closed when the background reaches termination, then I think the channel should be closed once the this stream exits.
Further note, this will cause the foreground stream to exit with Success which might not be correct. I think Canceled should be the right outcome in that case.
Maybe prefetch can be expressed via one of the other combinators that run two streams concurrently which also guarantees communication of cancellation and errors if any of the concurrent streams exits (merge? but it doesn't look like it handles cancellation properly).
fs2 version 3.10.2
this code does not terminate:
expected behavior: prefetch should not change execution semantics, at least not so much as to prevent termination
The text was updated successfully, but these errors were encountered: