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

Method Model

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

Source from the content-addressed store, hash-verified

261}
262
263func (t *DBTask) Model() *ent.Task {
264 t.mu.Lock()
265 defer t.mu.Unlock()
266 return t.Task
267}
268
269func (t *DBTask) Cleanup(ctx context.Context) error {
270 return nil

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected