Skip to content

Commit

Permalink
make ZHub sealed abstract class instead of trait (#4925)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser committed Apr 9, 2021
1 parent f1820b9 commit 250c739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/zio/ZHub.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicBoolean
* messages can require an environment of type `RB` and fail with an error of
* type `EB`.
*/
sealed trait ZHub[-RA, -RB, +EA, +EB, -A, +B] extends Serializable { self =>
sealed abstract class ZHub[-RA, -RB, +EA, +EB, -A, +B] extends Serializable { self =>

/**
* Waits for the hub to be shut down.
Expand Down Expand Up @@ -438,7 +438,7 @@ object ZHub {
* A `Strategy[A]` describes the protocol for how publishers and subscribers
* will communicate with each other through the hub.
*/
private trait Strategy[A] {
private sealed abstract class Strategy[A] {

/**
* Describes how publishers should signal to subscribers that they are
Expand Down

0 comments on commit 250c739

Please sign in to comment.