Shift removes a Job from the head of the queue. It returns the Job that was removed, as well as the number of Jobs still left in the queue after shifting. When Shift is called on an empty queue, j will be nil. So an appropriate use of Shift looks like this: j, nrem := q.Shift() if j != nil { Do so
()
source not stored for this graph (policy: none)