Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (12 loc) · 323 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 323 Bytes

queue

Run tasks on seperate goroutines with control

Basic Example

import "github.com/otium/queue"

q := queue.NewQueue(func(val interface{}) {


}, 20)
for i := 0; i < 200; i++ {
    q.Push(i)
}
q.Wait()

Documentation: http://godoc.org/github.com/otium/queue