Skip to content

Commit

Permalink
prevent early termination of stream (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Apr 27, 2022
1 parent 9117f44 commit bfb51e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class FS2RIOStreamSyntax[R, A](private val stream: Stream[RIO[R, _], A]) {
.resource
.drain
.toScopedZIO
.fork
.forkScoped
} yield ZStream.fromQueue(queue).flattenTake
}
.flatten
Expand All @@ -74,7 +74,7 @@ final class FS2RIOStreamSyntax[R, A](private val stream: Stream[RIO[R, _], A]) {
.resource
.drain
.toScopedZIO
.fork
.forkScoped
} yield ZStream.fromQueue(queue).flattenTake
}
.flatten
Expand Down

0 comments on commit bfb51e6

Please sign in to comment.