MCPcopy Create free account
hub / github.com/devfeel/dottask / GetTask

Method GetTask

tasks.go:255–260  ·  view source on GitHub ↗

GetTask get TaskInfo by TaskID

(taskID string)

Source from the content-addressed store, hash-verified

253
254// GetTask get TaskInfo by TaskID
255func (service *TaskService) GetTask(taskID string) (t Task, exists bool) {
256 service.taskMutex.RLock()
257 defer service.taskMutex.RUnlock()
258 t, exists = service.taskMap[taskID]
259 return t, exists
260}
261
262// AddTask add new task point
263func (service *TaskService) AddTask(t Task) {

Callers 4

RemoveTaskMethod · 0.95
mainFunction · 0.80
enqueeMessageFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected