Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages