Versions in this module Expand all Collapse all v0 v0.3.1 Jan 12, 2025 Changes in this version + type Funnel interface + Valve func(name T, call func()) + func NewFunnel[T comparable]() Funnel[T] + type Limiter interface + Tap func(ctx context.Context) error + func NewLimiter(ctx context.Context, count int, interval time.Duration) Limiter + type Map struct + func NewMap[K comparable, V any](size uint) *Map[K, V] + func (v *Map[K, V]) Del(key K) + func (v *Map[K, V]) Extract(key K) (val V, ok bool) + func (v *Map[K, V]) Get(key K) (val V, ok bool) + func (v *Map[K, V]) Keys() []K + func (v *Map[K, V]) Reset() + func (v *Map[K, V]) Set(key K, val V) + type Slice struct + func NewSlice[V any](size uint) *Slice[V] + func (v *Slice[V]) Append(val ...V) + func (v *Slice[V]) Extract() []V v0.3.0 Jul 10, 2024 Changes in this version + type Group interface + Background func(call func()) + Run func(call func()) + Wait func() + func NewGroup() Group + type Lock interface + Lock func(call func()) + RLock func(call func()) + func NewLock() Lock + type Switch interface + IsOff func() bool + IsOn func() bool + Off func() bool + On func() bool + func NewSwitch() Switch