Versions in this module Expand all Collapse all v2 v2.0.2 Jun 9, 2023 Changes in this version + const Md5 + const Sha1 + var CrcMask = uint32(0xffffffff) >> 6 + var ErrorFullChan = errors.New("full chan error") + var ErrorInvalidParameter = errors.New("invalid parameter") + var ErrorSliceNotEqualLength = errors.New("two slices not equal length") + var ErrorTimeout = errors.New("time out error") + func SetCRCMask(n int) + type CompareFn func(a, b T) int + type ErrHandler func(err any) + type FetchHandler func(context.Context, chan T) + type Float interface + type IComparator interface + Len func() int + Less func(i, j int) bool + Swap func(i, j int) + type IFanOut interface + Compute func(chan T) chan T + Merge func(...chan T) chan T + Produce func() chan T + type ILimit interface + Get func() + Put func() + type IPriorityChan interface + Get func() T + GetWithTimeout func(timeout time.Duration) (T, error) + HandleSignal func(highHandler PriorityHandler[T], lowHandler PriorityHandler[T]) error + Put func(event T, t PriorityType) + PutWithTimeout func(event T, t PriorityType, timeout time.Duration) error + TryGet func() T + TryPut func(event T, t PriorityType) error + type Integer interface + type Ordered interface + type PriorityHandler func(event T) error + type PriorityType int + const HighPriorityType + const LowPriorityType + type Signed interface + type Tuple struct + Key K + Value V + type Unsigned interface + type WaitGroupHandler func() error Other modules containing this package github.com/aronlt/toolkit