Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastChannel ¶
type BroadcastChannel[T any] struct { // contains filtered or unexported fields }
func NewBroadcastChannel ¶
func NewBroadcastChannel[T any]() *BroadcastChannel[T]
func (*BroadcastChannel[T]) Broadcast ¶
func (b *BroadcastChannel[T]) Broadcast(ctx context.Context, content T) error
func (*BroadcastChannel[T]) Register ¶
func (b *BroadcastChannel[T]) Register() (ReceiverID, <-chan T)
func (*BroadcastChannel[T]) Remove ¶
func (b *BroadcastChannel[T]) Remove(id ReceiverID)
Click to show internal directories.
Click to hide internal directories.