Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶
func (*Publisher[T]) Subscribe ¶
func (t *Publisher[T]) Subscribe() *Subscriber[T]
type Subscriber ¶
type Subscriber[T any] struct { // contains filtered or unexported fields }
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.