Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lifetime ¶
type Lifetime struct {
// contains filtered or unexported fields
}
func NewLifetime ¶
type Publisher ¶
type Publisher[T any] struct { // contains filtered or unexported fields }
func NewPublisher ¶
type Subscriber ¶
func (*Subscriber[T]) Done ¶
func (t *Subscriber[T]) Done()
func (*Subscriber[T]) Recv ¶
func (t *Subscriber[T]) Recv() <-chan T
type WaitBuffer ¶
type WaitBuffer struct { deadlock.Mutex // contains filtered or unexported fields }
A buffer where Read() blocks until the next Write().
func NewWaitBuffer ¶
func NewWaitBuffer() *WaitBuffer
Click to show internal directories.
Click to hide internal directories.