Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorUsingAlloter = fmt.Errorf("ErrorUsingActuator")
Functions ¶
This section is empty.
Types ¶
type BaseActuator ¶ added in v1.2.2
type CtrlAlloter ¶ added in v1.2.2
type CtrlAlloter struct {
// contains filtered or unexported fields
}
func NewCtrlAlloter ¶ added in v1.2.2
func NewCtrlAlloter(workerNum int) *CtrlAlloter
func (*CtrlAlloter) Exec ¶ added in v1.2.2
func (c *CtrlAlloter) Exec(tasks *[]Task) error
func (*CtrlAlloter) ExecWithContext ¶ added in v1.2.2
func (c *CtrlAlloter) ExecWithContext(ctx context.Context, tasks *[]Task) error
type GoroutinePool ¶
type GoroutinePool interface { Submit(f func()) error Release() }
type PooledAlloter ¶
type PooledAlloter struct {
// contains filtered or unexported fields
}
func NewPooledAlloter ¶
func NewPooledAlloter(workerNum int) *PooledAlloter
func (*PooledAlloter) Exec ¶
func (c *PooledAlloter) Exec(tasks *[]Task) error
Exec is used to run tasks concurrently
func (*PooledAlloter) ExecWithContext ¶
func (c *PooledAlloter) ExecWithContext(ctx context.Context, tasks *[]Task) error
func (*PooledAlloter) Release ¶
func (c *PooledAlloter) Release()
func (*PooledAlloter) WithPool ¶
func (c *PooledAlloter) WithPool(pool GoroutinePool) *PooledAlloter
WithPool will support for using custom goroutine pool
type TimedAlloter ¶
type TimedAlloter interface { BaseActuator }
Click to show internal directories.
Click to hide internal directories.