MCPcopy Create free account
hub / github.com/aptly-dev/aptly / NewTask

Function NewTask

task/task.go:60–72  ·  view source on GitHub ↗

NewTask creates new task

(process Process, name string, ID int, resources []string, wgTask *sync.WaitGroup)

Source from the content-addressed store, hash-verified

58
59// NewTask creates new task
60func NewTask(process Process, name string, ID int, resources []string, wgTask *sync.WaitGroup) *Task {
61 task := &Task{
62 output: NewOutput(),
63 detail: &Detail{},
64 process: process,
65 Name: name,
66 ID: ID,
67 State: IDLE,
68 Resources: resources,
69 wgTask: wgTask,
70 }
71 return task
72}

Callers 1

RunTaskInBackgroundMethod · 0.85

Calls 1

NewOutputFunction · 0.85

Tested by

no test coverage detected