Documentation
¶
Index ¶
- Variables
- 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) (<-chan T, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResultSentTwice = fmt.Errorf("tried to send result twice")
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.