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

Method ResumeTime

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

Source from the content-addressed store, hash-verified

325}
326
327func (t *DBTask) ResumeTime() int64 {
328 t.mu.Lock()
329 defer t.mu.Unlock()
330
331 if t.Task != nil {
332 return t.Task.PublicState.ResumeTime
333 }
334 return 0
335}
336
337func (t *DBTask) OnSuspend(time int64) {
338 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected