Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAround = AroundWorkFunc(func(work func()) {
work()
})
Functions ¶
This section is empty.
Types ¶
type AroundWork ¶
type AroundWork interface {
Around(func())
}
type AroundWorkFunc ¶
type AroundWorkFunc func(work func())
func (AroundWorkFunc) Around ¶
func (f AroundWorkFunc) Around(work func())
type WorkPool ¶
type WorkPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(workers, pending int, aroundWork AroundWork) *WorkPool
func NewWorkPool ¶
Click to show internal directories.
Click to hide internal directories.