MCPcopy Create free account
hub / github.com/cloudwan/gohan / NewWorker

Function NewWorker

job/queue.go:49–54  ·  view source on GitHub ↗

NewWorker makes new working process

(queue *Queue)

Source from the content-addressed store, hash-verified

47
48//NewWorker makes new working process
49func NewWorker(queue *Queue) *Worker {
50 return &Worker{
51 queue: queue,
52 CloseCh: make(chan bool),
53 }
54}
55
56//Start consuming task
57func (worker *Worker) Start() {

Callers 1

NewQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected