Skip to content

Commit

Permalink
#264 Fix fiber interrupted issue in Bulkhead (#265)
Browse files Browse the repository at this point in the history
.fork.toManaged_ does not behave the same as .forkManaged (= .toManaged_.fork)
  • Loading branch information
svroonland authored Jul 21, 2022
1 parent 85b16ae commit dddeb6c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ object Bulkhead {
onStart.bracket_(onEnd, task)
}
.runDrain
.fork
.toManaged_
.forkManaged
} yield new Bulkhead {
override def apply[R, E, A](task: ZIO[R, E, A]): ZIO[R, BulkheadError[E], A] =
for {
Expand Down

0 comments on commit dddeb6c

Please sign in to comment.