Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool(poolSize int) (pool *WorkerPool)
func (*WorkerPool) MeasureUsage ¶
func (pool *WorkerPool) MeasureUsage() (usage float64, timeSinceStartTime time.Duration)
func (*WorkerPool) ScheduleWork ¶
func (pool *WorkerPool) ScheduleWork(work func())
func (*WorkerPool) StartTrackingUsage ¶
func (pool *WorkerPool) StartTrackingUsage()
func (*WorkerPool) StopWorkers ¶
func (pool *WorkerPool) StopWorkers()
Click to show internal directories.
Click to hide internal directories.