MCPcopy Index your code
hub / github.com/danslimmon/qsim / BeforeShift

Method BeforeShift

queue.go:131–133  ·  view source on GitHub ↗

BeforeShift adds a callback to be run immediately before a Job is shifted out of the queue. The callback will be passed the queue itself and the job that's about to be shifted. If Shift is called on an empty queue, this callback will run but j will be nil.

(f func(q *Queue, j *Job))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestQueueBeforeShiftFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestQueueBeforeShiftFunction · 0.76