Skip to content

Commit

Permalink
Use FiberRuntime#unsafe.addObserver for bincompat with v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou committed Apr 17, 2024
1 parent 772233b commit 891df52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-interop-cats/shared/src/main/scala/zio/interop/cats.scala
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ private abstract class ZioConcurrent[R, E, E1]
ZIO
.async[R, E3, C](
{ cb =>
leftFiber.addObserver { _ =>
leftFiber.unsafe.addObserver { _ =>
complete(leftFiber, rightFiber, leftWins, raceIndicator, cb)
()
}(Unsafe.unsafe)

rightFiber.addObserver { _ =>
rightFiber.unsafe.addObserver { _ =>
complete(rightFiber, leftFiber, rightWins, raceIndicator, cb)
()
}(Unsafe.unsafe)
Expand Down

0 comments on commit 891df52

Please sign in to comment.