The maximum capacity of the hub.
Checks whether the hub is currently empty.
Checks whether the hub is currently full.
Publishes the specified value to the hub and returns whether the value was successfully published to the hub.
Publishes the specified values to the hub, returning the values that could not be successfully published to the hub.
The current number of values in the hub.
Drops a value from the hub.
Subscribes to receive values from the hub.
A
Hub[A]
is a concurrent data structure that allows multiple publishers to publishA
values and multiple subscribers to pollA
values with the guarantee that all subscribers will receive all values published to the hub while they are subscribed.