Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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