The maximum capacity of the hub.
Checks whether the hub is shut down.
Publishes a message to the hub, returning whether the message was published to the hub.
Publishes all of the specified messages to the hub, returning whether they were published to the hub.
Shuts down the hub.
The current number of messages in the hub.
Subscribes to receive messages from the hub.
Subscribes to receive messages from the hub. The resulting subscription can be evaluated multiple times to take a message from the hub each time. The caller is responsible for unsubscribing from the hub by shutting down the queue.
Waits for the hub to be shut down.
Transforms messages published to the hub using the specified function.
Transforms messages published to the hub using the specified transactional function.
Transforms messages published to and taken from the hub using the specified functions.
Transforms messages published to and taken from the hub using the specified transactional functions.
Filters messages published to the hub using the specified function.
Filters messages published to the hub using the specified transactional function.
Filters messages taken from the hub using the specified function.
Filters messages taken from the hub using the specified transactional function.
Transforms messages taken from the hub using the specified function.
Transforms messages taken from the hub using the specified transactional function.
Subscribes to receive messages from the hub.
Subscribes to receive messages from the hub. The resulting subscription can be evaluated multiple times within the scope of the managed to take a message from the hub each time.
Views the hub as a transactional queue that can only be written to.
A
ZTHub[RA, RB, EA, EB, A, B]
is a transactional message hub. Publishers can publish messages of typeA
to the hub and subscribers can subscribe to take messages of typeB
from the hub. Publishing messages can require an environment of typeRA
and fail with an error of typeEA
. Taking messages can require an environment of typeRB
and fail with an error of typeEB
.