Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWriterClosed = errors.New("writer is closed")
ErrWriterClosed is returned when Write() is invoked on a closed Writer.
Functions ¶
This section is empty.
Types ¶
type DrainFunc ¶
DrainFunc represents a function to wait for a multicast Listener to process its inbound queue.
type Listener ¶
type Listener[T any] struct { // contains filtered or unexported fields }
Listener represents a multicast listener.
type Multicast ¶
type Multicast[T any] struct { // contains filtered or unexported fields }
Multicast represents an object capable of broadcasting messages from multiple writers to multiple listeners.
func (*Multicast[T]) NewListener ¶
NewListener returns a new message Listener for the multicast.
type Option ¶
type Option func(*config)
Option represents a Multicast configuration option.
func WithOutboundQueueSize ¶
WithOutboundQueueSize is a Multicast configuration option to set a non default value for the outbound queue (channel) buffer size.
Click to show internal directories.
Click to hide internal directories.