Popularity
2.4
Growing
Activity
3.2
Declining
24
3
2

Programming language: Go
Tags: Goroutines    
Latest version: v0.3

artifex alternatives and similar packages

Based on the "Goroutines" category

Do you think we are missing an alternative of artifex or a related project?

Add another 'Goroutines' Package

README

GoDoc Build Status Go Report Card codecov

artifex

Simple in-memory job queue for Golang using worker-based dispatching

Documentation here: https://godoc.org/github.com/mborders/artifex

Example Usage

// 10 workers, 100 max in job queue
d := artifex.NewDispatcher(10, 100)
d.Start()

d.Dispatch(func() {
  // do something
})

err := d.DispatchIn(func() {
  // do something in 500ms
}, time.Millisecond*500)

// Returns a DispatchTicker
dt, err := d.DispatchEvery(func() {
  // do something every 250ms
}, time.Millisecond*250)

// Stop a given DispatchTicker
dt.Stop()

// Stop a dispatcher and all its workers/tickers
d.Stop()