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

Method Remove

queue.go:83–93  ·  view source on GitHub ↗

Remove removes a particular Job (identified by JobId property) from the queue. It returns the Job that was removed, as well as the number of Jobs still left in the queue after removing. When Remove is passed a Job that is absent from the queue, its returned job will be nil. So an appropriate use of

(jToRemove *Job)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestQueueRemoveFunction · 0.95
TestQueueBeforeRemoveFunction · 0.95
TestQueueAfterRemoveFunction · 0.95
BeforeEventsMethod · 0.80
applyBloodBankDisciplineFunction · 0.80

Calls 3

beforeRemoveMethod · 0.95
afterRemoveMethod · 0.95
LengthMethod · 0.95

Tested by 3

TestQueueRemoveFunction · 0.76
TestQueueBeforeRemoveFunction · 0.76
TestQueueAfterRemoveFunction · 0.76