Documentation ¶
Index ¶
- type CoroutineHandler
- type Number
- type NumberMap
- func (m *NumberMap[K, V]) Decre(k K, decrement V)
- func (m *NumberMap[K, V]) DecreOne(k K)
- func (m *NumberMap[K, V]) Incre(k K, increment V)
- func (m *NumberMap[K, V]) IncreOne(k K)
- func (m *NumberMap[K, V]) Load(k K) V
- func (m *NumberMap[K, V]) LoadOk(k K) (V, bool)
- func (m *NumberMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *NumberMap[K, V]) Range(visit func(k K, v V) bool)
- func (m *NumberMap[K, V]) Store(k K, v V)
- func (m *NumberMap[K, V]) String() string
- func (m *NumberMap[K, V]) UnmarshalJSON(data []byte) error
- type WaitCoroutines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoroutineHandler ¶
type CoroutineHandler func()
type NumberMap ¶ added in v2.1.1
type NumberMap[K comparable, V Number] struct { // contains filtered or unexported fields }
func NewNumberMap ¶ added in v2.1.1
func NewNumberMap[k comparable, v Number]() *NumberMap[k, v]
func (*NumberMap[K, V]) MarshalJSON ¶ added in v2.1.1
func (*NumberMap[K, V]) UnmarshalJSON ¶ added in v2.1.1
type WaitCoroutines ¶
type WaitCoroutines struct {
// contains filtered or unexported fields
}
func NewWaitCoroutines ¶
func NewWaitCoroutines() *WaitCoroutines
func (*WaitCoroutines) AddCoroutine ¶
func (w *WaitCoroutines) AddCoroutine(handler CoroutineHandler)
func (*WaitCoroutines) Wait ¶
func (w *WaitCoroutines) Wait()
Click to show internal directories.
Click to hide internal directories.