MCPcopy Index your code
hub / github.com/gogs/gogs / Exist

Method Exist

internal/sync/unique_queue.go:37–39  ·  view source on GitHub ↗

Exist returns true if there is an instance with given identity exists in the queue.

(id any)

Source from the content-addressed store, hash-verified

35// Exist returns true if there is an instance with given identity
36// exists in the queue.
37func (q *UniqueQueue) Exist(id any) bool {
38 return q.table.IsRunning(com.ToStr(id))
39}
40
41// AddFunc adds new instance to the queue with a custom runnable function,
42// the queue is blocked until the function exits.

Callers 2

AddFuncMethod · 0.95
checkAndUpdateStatusMethod · 0.80

Calls 1

IsRunningMethod · 0.80

Tested by

no test coverage detected