workerpool

package
v0.0.0-...-8178c74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2014 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL