MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ID

Method ID

pkg/queue/task.go:163–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163func (t *DBTask) ID() int {
164 t.mu.Lock()
165 defer t.mu.Unlock()
166
167 if t.Task != nil {
168 return t.Task.ID
169 }
170 return 0
171}
172
173func (t *DBTask) Status() task.Status {
174 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected