Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

markbates/chalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chalk Build Status Godoc license

Quickly and easily create a pool of go routines. Create as many "queues" as you want, each with their own number of go routines ready to do your bidding.

Installation

$ go get https://github.com/markbates/chalk

Usage

// create a pool of 10 go routines
c := chalk.New(10)

c.Tasks <- func() error {
  // do some work here
  return nil
}

// handle err
c.Tasks <- func() error {
  return errors.New("boom!")
}

err := <-c.Errors

// wait for all of the workers to finish
c.Wait()

About

Quickly and easily create a pool of `go routines`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages