Skip to content

Powerful unlimited job queue with goroutine pool

License

Notifications You must be signed in to change notification settings

go-zoox/jobqueue

Repository files navigation

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.

About

Powerful unlimited job queue with goroutine pool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages