Skip to content
euskadi31Public

About

Pool Worker in Go

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Go Worker Last release Documentation

Go Report Card

Branch Status Coverage
master Go Coveralls

Pool Worker fo Golang

Example

import (
    "fmt"

    "github.com/euskadi31/go-worker"
)

pool := worker.New(10, 100, func(payload interface{}) {
    val := payload.(int)

    fmt.Printf("Val: %d", val * val)
})

pool.Start()

pool.Enqueue(1)

pool.Close()

License

go-worker is licensed under the MIT license.

About

Pool Worker in Go

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages