Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitMap ¶
type WaitMap[K comparable, V any] struct { sync.Mutex // contains filtered or unexported fields }
WaitMap is a key-value store that enables not only setting and getting values from a map, but also waiting until value for a key becomes available.
func (*WaitMap[K, V]) Set ¶
func (w *WaitMap[K, V]) Set(key K, value V)
Set sets the value for a key. If the value already exists, we append it to a list.
Click to show internal directories.
Click to hide internal directories.