Skip to main content
Version: 2.x

THub

A THub is a transactional message hub. Publishers can publish messages to the hub and subscribers can subscribe to take messages from the hub.

A THub is an asynchronous message hub like Hub but it can participate in STM transactions. APIs are almost identical, but they are in the STM world rather than the ZIO world.

The fundamental operators on a THub are publish and subscribe:

trait THub[A] {
def publish(a: A): USTM[Boolean]
def subscribe: USTM[TDequeue[B]]
}

ZIO Chat

๐ŸŽ‰ Hey there, ZIO aficionado! ๐ŸŽ‰ Step into the ZIO wonderland with me as your guide. Whether you're a functional fanatic or just dipping your toes into the ZIO ecosystem, I'm here to make your journey smooth. Got ZIO questions? I've got answers! Let's navigate the ZIO universe together and unlock its infinite possibilities!