coroutines

package
v2.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoroutineHandler

type CoroutineHandler func(wg *sync.WaitGroup)

type Number added in v2.1.1

type Number interface {
	~int | ~int32 | ~int64 | ~float32 | ~float64 | ~uint | ~uint32 | ~uint64 | ~complex64 | ~complex128
}

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]) Decre added in v2.1.1

func (m *NumberMap[K, V]) Decre(k K, decrement V)

func (*NumberMap[K, V]) DecreOne added in v2.1.1

func (m *NumberMap[K, V]) DecreOne(k K)

func (*NumberMap[K, V]) Incre added in v2.1.1

func (m *NumberMap[K, V]) Incre(k K, increment V)

func (*NumberMap[K, V]) IncreOne added in v2.1.1

func (m *NumberMap[K, V]) IncreOne(k K)

func (*NumberMap[K, V]) Load added in v2.1.1

func (m *NumberMap[K, V]) Load(k K) V

func (*NumberMap[K, V]) LoadOk added in v2.1.1

func (m *NumberMap[K, V]) LoadOk(k K) (V, bool)

func (*NumberMap[K, V]) MarshalJSON added in v2.1.1

func (m *NumberMap[K, V]) MarshalJSON() ([]byte, error)

func (*NumberMap[K, V]) Range added in v2.1.1

func (m *NumberMap[K, V]) Range(visit func(k K, v V) bool)

func (*NumberMap[K, V]) Store added in v2.1.1

func (m *NumberMap[K, V]) Store(k K, v V)

func (*NumberMap[K, V]) String added in v2.1.1

func (m *NumberMap[K, V]) String() string

func (*NumberMap[K, V]) UnmarshalJSON added in v2.1.1

func (m *NumberMap[K, V]) UnmarshalJSON(data []byte) error

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL