Struct flo_stream::SinglePublisher [−][src]
pub struct SinglePublisher<Message> { /* fields omitted */ }
Expand description
A single publisher is a publisher that sends each message to only a single subscriber rather than all of them
This is useful for scheduling messages on the first available worker.
Implementations
Creates a new single publisher, which will buffer the specified number of messages
Counts the number of subscribers in this publisher
Trait Implementations
Subscribes to this publisher
Subscribers only receive messages sent to the publisher after they are created.
Reserves a space for a message with the subscribers, returning when it’s ready
Waits until all subscribers have consumed all pending messages
Returns true if this publisher is closed (will not publish any further messages to its subscribers)
Future that returns when this publisher is closed