Documentation ¶
Overview ¶
Package sdconcurr 并发/并行工具包
Index ¶
- Variables
- func Bind[T any](l []T, action func(int, T)) []func()
- func Do[T any](n int, l []T, action func(int, T)) error
- func DoFuncs(n int, actions []func()) error
- func Lock(mtx *sync.Mutex, action func())
- func LockR(mtx *sync.RWMutex, action func())
- func LockW(mtx *sync.RWMutex, action func())
- type Pool
- type PoolOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPoolExpiry = ants.ErrInvalidPoolExpiry ErrLackPoolFunc = ants.ErrLackPoolFunc ErrPoolClosed = ants.ErrPoolClosed ErrPoolOverload = ants.ErrPoolOverload ErrInvalidPreAllocSize = ants.ErrInvalidPreAllocSize )
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) NumRunning ¶
type PoolOptions ¶
type PoolOptions = ants.Options
Click to show internal directories.
Click to hide internal directories.