No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE
README.md
workerpool.go

README.md

Worker Pools

Installation

  github.com/mariadesouza/workerpool

Exported Methods

New

Params: numOfWorkers int Returns: (*WorkerPool)

(*WorkerPool) AddWorkToPool()

Params: func()

(*WorkerPool) Close()

Example:

wp := workerpool.New(m)
defer wp.Close()
for i := 0; i < n; i++ {
    wp.AddWorkToPool(
			func() {
        functiontoberunconcurrently()
      }
   )
}

Synopsis

Reference

Contributor

Maria De Souza