Skip to content

rekey/pools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pools

install

go get -v github.com/rekey/pools

example

//p := pools.NewPools(maxThreadCount, StopOnError)
p := pools.NewPools(10, true)
for i := 0; i < 15; i++ {
    (func(i int) {
        p.Push(func() error {
            if i == 3 {
                return errors.New("test error")
            }
            log.Println("p.Run", i)
            return nil
        })
    })(i)
}
err := p.Run()
log.Println(err)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages