Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bcast ¶
type Bcast[T any] struct { // contains filtered or unexported fields }
func (*Bcast[T]) Close ¶
func (b *Bcast[T]) Close()
Close stops further broadcasting. Existing subscribers will be closed. Multiple Close calls are safe.
func (*Bcast[T]) Run ¶
This should be called in a goroutine. It will exit when both - Close has being called on Bcast - the msg channel is closed This should be run in a separate goroutine
func (*Bcast[T]) Unsubscribe ¶
func (b *Bcast[T]) Unsubscribe(ch <-chan T)
Click to show internal directories.
Click to hide internal directories.