Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreadPool ¶
type ThreadPool struct { NumWorkers int NumMaxQueues int // contains filtered or unexported fields }
func NewThreadPool ¶
func NewThreadPool(numWorkers, numMaxQueues int) *ThreadPool
func (*ThreadPool) AddJob ¶
func (tp *ThreadPool) AddJob(job Job)
func (*ThreadPool) GetResults ¶
func (tp *ThreadPool) GetResults() <-chan int
func (*ThreadPool) Start ¶
func (tp *ThreadPool) Start()
func (*ThreadPool) Wait ¶
func (tp *ThreadPool) Wait()
Click to show internal directories.
Click to hide internal directories.