Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
163
func
(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
173
func
(t *DBTask) Status() task.Status {
174
t.mu.Lock()
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected