Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProducerClosed error = errors.New("producer closed")
)
Functions ¶
This section is empty.
Types ¶
type Producer ¶ added in v0.4.0
type Subscriber ¶
type Subscriber[T any] interface { Receive() <-chan T Close() }
func NewSubscriber ¶
func NewSubscriber[T any, K any](p Producer[K], processIncoming func(K) (T, bool)) Subscriber[T]
Click to show internal directories.
Click to hide internal directories.