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

Method State

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

Source from the content-addressed store, hash-verified

200}
201
202func (t *DBTask) State() string {
203 t.mu.Lock()
204 defer t.mu.Unlock()
205
206 if t.Task != nil {
207 return t.Task.PrivateState
208 }
209 return ""
210}
211
212func (t *DBTask) Persisted() bool {
213 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected