Documentation
¶
Index ¶
- type Channel
- func (c *Channel[T]) Broadcast(ctx context.Context, m T) error
- func (c *Channel[T]) Ch() chan<- T
- func (c *Channel[T]) Close(ctx context.Context) error
- func (c *Channel[T]) Run(ctx context.Context)
- func (c *Channel[T]) Running() bool
- func (c *Channel[T]) SubCount(ctx context.Context) (int, error)
- func (c *Channel[T]) Subscribe(ctx context.Context) (Sub[T], error)
- type Sub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel[T any] struct { // contains filtered or unexported fields }
func NewChannel ¶
Click to show internal directories.
Click to hide internal directories.