Skip to content

Commit

Permalink
Terminate the sending fork in mapParScope after an error
Browse files Browse the repository at this point in the history
  • Loading branch information
rucek committed Oct 30, 2023
1 parent f3214bc commit 8f08365
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/ox/channels/SourceOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ trait SourceOps[+T] { this: Source[T] =>
repeatWhile {
inProgress.receive() match
case f: Fork[Option[U]] @unchecked =>
f.join().foreach(c2.send)
true
f.join().map(c2.send).isDefined
case ChannelClosed.Done =>
closeScope.countDown()
c2.done()
Expand Down

0 comments on commit 8f08365

Please sign in to comment.