Documentation
¶
Index ¶
- func WithLocker0To0(l sync.Locker, f func())
- func WithLocker0To1[F1 any](l sync.Locker, f func() F1) F1
- func WithLocker0To2[F1, F2 any](l sync.Locker, f func() (F1, F2)) (F1, F2)
- func WithLocker1To0[E1 any](l sync.Locker, f func(E1), e1 E1)
- func WithLocker1To1[E1, F1 any](l sync.Locker, f func(E1) F1, e1 E1) F1
- func WithLocker1To2[E1, F1, F2 any](l sync.Locker, f func(E1) (F1, F2), e1 E1) (F1, F2)
- func WithLocker2To0[E1, E2 any](l sync.Locker, f func(E1, E2), e1 E1, e2 E2)
- func WithLocker2To1[E1, E2, F1 any](l sync.Locker, f func(E1, E2) F1, e1 E1, e2 E2) F1
- func WithLocker2To2[E1, E2, F1, F2 any](l sync.Locker, f func(E1, E2) (F1, F2), e1 E1, e2 E2) (F1, F2)
- type KLock
- type Map
- func (m *Map[K, V]) All() iter.Seq2[K, V]
- func (m *Map[K, V]) Clear()
- func (m *Map[K, V]) Delete(k K)
- func (m *Map[K, V]) GetOK(k K) (V, bool)
- func (m *Map[K, V]) Keys() iter.Seq[K]
- func (m *Map[K, V]) Len() int
- func (m *Map[K, V]) Replace(values map[K]V)
- func (m *Map[K, V]) Set(k K, v V)
- func (m *Map[K, V]) Values() iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLocker0To0 ¶
func WithLocker0To1 ¶
func WithLocker0To2 ¶
func WithLocker1To0 ¶
func WithLocker1To1 ¶
func WithLocker1To2 ¶
func WithLocker2To0 ¶
func WithLocker2To1 ¶
func WithLocker2To2 ¶
Types ¶
type KLock ¶
type KLock[K comparable] struct { // contains filtered or unexported fields }
func (*KLock[K]) RUnlockKey ¶
func (m *KLock[K]) RUnlockKey(k K)
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func NewMap ¶
func NewMap[K comparable, V any]() *Map[K, V]
Click to show internal directories.
Click to hide internal directories.