Skip to content

Commit

Permalink
Update ZIO to 1.0.0-RC21 (#195)
Browse files Browse the repository at this point in the history
* Update ZIO to 1.0.0-RC21

* fmt

* Ensure internal interruption is not reported

* Revert
  • Loading branch information
ghostdogpr authored Jun 21, 2020
1 parent 288330b commit 332c7ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ lazy val root = project
unusedCompileDependenciesFilter -= moduleFilter("org.scala-js", "scalajs-library")
)

val zioVersion = "1.0.0-RC20"
val zioVersion = "1.0.0-RC21"
lazy val interopCats = crossProject(JSPlatform, JVMPlatform)
.in(file("interop-cats"))
.enablePlugins(BuildInfoPlugin)
Expand Down
3 changes: 1 addition & 2 deletions interop-cats/shared/src/main/scala/zio/interop/cats.scala
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ private class CatsConcurrentEffect[R](rts: Runtime[R])
_ => fa
)
.interruptible
.forkWithErrorHandler(_ => ZIO.unit)
.tap(ZIO.disown)
.forkDaemon
.map(_.interrupt.unit)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import org.scalacheck.{ Arbitrary, Cogen, Gen }
import zio.interop.catz.taskEffectInstance
import zio.interop.catzSpecBase
import zio.stream._
import zio.ZIO
import zio.{ Chunk, ZIO }

private[interop] trait catzSpecZStreamBase
extends catzSpecBase
with catzSpecZStreamBaseLowPriority
with GenStreamInteropCats {

implicit def chunkEq[A](implicit ev: Eq[A]): Eq[Chunk[A]] = (x: Chunk[A], y: Chunk[A]) => x.corresponds(y)(ev.eqv)

implicit def zstreamEqStream[E: Eq, A: Eq](implicit tc: TestContext): Eq[Stream[E, A]] = Eq.by(_.either)

implicit def zstreamEqUStream[A: Eq](implicit tc: TestContext): Eq[Stream[Nothing, A]] =
Expand Down

0 comments on commit 332c7ea

Please sign in to comment.