MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / Del

Method Del

pkg/task_queue/task_queue.go:303–309  ·  view source on GitHub ↗

Del 删除一个元素

(jobId string)

Source from the content-addressed store, hash-verified

301
302// Del 删除一个元素
303func (t *TaskQueue) Del(jobId string) (bool, error) {
304
305 defer t.queueLock.Unlock()
306 t.queueLock.Lock()
307
308 return t.del(jobId)
309}
310
311func (t *TaskQueue) read() {
312

Callers 2

queueDownloaderLocalMethod · 0.80

Calls 3

delMethod · 0.95
UnlockMethod · 0.80
LockMethod · 0.80

Tested by 1