Hub

object Hub
Companion:
class
class Object
trait Matchable
class Any
Hub.type

Value members

Concrete methods

def bounded[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the back pressure strategy. The hub will retain messages until they have been taken by all subscribers, applying back pressure to publishers if the hub is at capacity.

Creates a bounded hub with the back pressure strategy. The hub will retain messages until they have been taken by all subscribers, applying back pressure to publishers if the hub is at capacity.

For best performance use capacities that are powers of two.

def dropping[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the dropping strategy. The hub will drop new messages if the hub is at capacity.

Creates a bounded hub with the dropping strategy. The hub will drop new messages if the hub is at capacity.

For best performance use capacities that are powers of two.

def sliding[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the sliding strategy. The hub will add new messages and drop old messages if the hub is at capacity.

Creates a bounded hub with the sliding strategy. The hub will add new messages and drop old messages if the hub is at capacity.

For best performance use capacities that are powers of two.

def unbounded[A](implicit trace: Trace): UIO[Hub[A]]

Creates an unbounded hub.

Creates an unbounded hub.