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

Method OnSuspend

pkg/queue/task.go:337–344  ·  view source on GitHub ↗
(time int64)

Source from the content-addressed store, hash-verified

335}
336
337func (t *DBTask) OnSuspend(time int64) {
338 t.mu.Lock()
339 defer t.mu.Unlock()
340
341 if t.Task != nil {
342 t.Task.PublicState.ResumeTime = time
343 }
344}
345
346func (t *DBTask) Progress(ctx context.Context) Progresses {
347 return nil

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected