Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicValue ¶
type AtomicValue[T any] struct { // contains filtered or unexported fields }
func (*AtomicValue[T]) Get ¶
func (a *AtomicValue[T]) Get() T
func (*AtomicValue[T]) Set ¶
func (a *AtomicValue[T]) Set(value T)
func (*AtomicValue[T]) Update ¶
func (a *AtomicValue[T]) Update(fn func(T) T) T
type BatchingChannel ¶
type BatchingChannel[T any] interface { In() chan<- T Out() <-chan []T }
func NewBatchingChannel ¶
type BufferedConcurrentChannel ¶
type BufferedConcurrentChannel[T any] interface { In() chan<- T Run(context.Context, func(T)) error }
func NewBufferedConcurrentChannel ¶
func NewBufferedConcurrentChannel[T any](capacity int, concurrency int) BufferedConcurrentChannel[T]
Click to show internal directories.
Click to hide internal directories.