MCPcopy
hub / github.com/kopia/kopia / EnqueueBack

Method EnqueueBack

internal/parallelwork/parallel_work_queue.go:38–40  ·  view source on GitHub ↗

EnqueueBack adds the work to the back of the queue.

(ctx context.Context, callback CallbackFunc)

Source from the content-addressed store, hash-verified

36
37// EnqueueBack adds the work to the back of the queue.
38func (v *Queue) EnqueueBack(ctx context.Context, callback CallbackFunc) {
39 v.enqueue(ctx, false, callback)
40}
41
42func (v *Queue) enqueue(ctx context.Context, front bool, callback CallbackFunc) {
43 v.monitor.L.Lock()

Callers 6

TestProcessWithErrorFunction · 0.95
TestWaitForActiveWorkersFunction · 0.95
TestProgressCallbackFunction · 0.95
CleanupOldDataFunction · 0.95
copyDirectoryContentMethod · 0.80

Calls 1

enqueueMethod · 0.95

Tested by 4

TestProcessWithErrorFunction · 0.76
TestWaitForActiveWorkersFunction · 0.76
TestProgressCallbackFunction · 0.76