Categorygithub.com/go-zoox/jobqueue
repositorypackage
1.0.1
Repository: https://github.com/go-zoox/jobqueue.git
Documentation: pkg.go.dev

# README

JobQueue - Powerful unlimited job queue with goroutine pool

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get github.com/go-zoox/jobqueue

Getting Started

import (
  "testing"
  "github.com/go-zoox/jobqueue"
)

func main(t *testing.T) {
	q := New(runtime.NumCPU())
	q.Start()
	defer q.Stop()

	for i := 0; i < 10; i++ {
		q.AddJob(&NewJob(func() {
			fmt.Println("Process Job")
		}))
	}
}

Inspired by

  • dirkaholic/kyoo - Unlimited job queue for go, using a pool of concurrent workers processing the job queue entries

Related

License

GoZoox is released under the MIT License.