Skip to content

Commit

Permalink
interruptFork
Browse files Browse the repository at this point in the history
  • Loading branch information
vkorchik committed Feb 17, 2024
1 parent 73993e0 commit 2885562
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zio-interop-cats/shared/src/main/scala/zio/interop/cats.scala
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,10 @@ private abstract class ZioConcurrent[R, E, E1]
leftFiber.id <> rightFiber.id
)
.onInterrupt(
leftFiber.interruptAsFork(parentFiber.id) *> rightFiber.interruptAsFork(
parentFiber.id
) *> leftFiber.await *> rightFiber.await
leftFiber.interruptFork *>
rightFiber.interruptFork *>
leftFiber.await *>
rightFiber.await
)
}
}
Expand Down

0 comments on commit 2885562

Please sign in to comment.