MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / isExist

Method isExist

pkg/task_queue/task_queue.go:407–410  ·  view source on GitHub ↗

isExist 是否已经存在,对内,无锁

(jobID string)

Source from the content-addressed store, hash-verified

405
406// isExist 是否已经存在,对内,无锁
407func (t *TaskQueue) isExist(jobID string) bool {
408 _, bok := t.taskKeyMap.Get(jobID)
409 return bok
410}
411
412// IsExist 是否已经存在,对外,有锁
413func (t *TaskQueue) IsExist(jobID string) bool {

Callers 3

AddMethod · 0.95
updateMethod · 0.95
delMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected