Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncPublisher ¶
FuncPublisher wraps a plain func as a Publisher.
func ChannelPublisher ¶
func ChannelPublisher[T any](events chan<- T) FuncPublisher[T]
ChannelPublisher wraps a plain channel as a Publisher.
type NilPublisher ¶
type NilPublisher[T any] struct{}
NilPublisher is a publisher than does nothing and returns no errors. Useful for testing.
Click to show internal directories.
Click to hide internal directories.