Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions streams/shared/src/main/scala/zio/stream/ZStream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2197,8 +2197,8 @@ abstract class ZStream[-R, +E, +O](val process: ZManaged[R, Nothing, ZIO[R, Opti
* stream is valid only within the scope of [[ZManaged]].
*/
def peel[R1 <: R, E1 >: E, O1 >: O, Z](
sink: ZSink[R1, E1, O1, O1, Z]
): ZManaged[R1, E1, (Z, ZStream[R1, E1, O1])] =
sink: ZSink[R1, E1, O, O1, Z]
): ZManaged[R1, E1, (Z, ZStream[R, E, O1])] =
self.process.flatMap { pull =>
val stream = ZStream.repeatEffectChunkOption(pull)
val s = sink.exposeLeftover
Expand Down