Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ type pool struct {
}

// Delegate job to a workers
// will block if channel is full, you might want to wrap it with goroutine to avoid it
func (p *pool) Delegate(args ...interface{}) {
go func() {
p.queue <- buildQueueValue(args)
}()
p.queue <- buildQueueValue(args)
}

// Start given number of workers that will take jobs from a queue
Expand Down