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

Method MarkInUse

task/resources.go:36–40  ·  view source on GitHub ↗

MarkInUse given resources as used by given task

(resources []string, task *Task)

Source from the content-addressed store, hash-verified

34
35// MarkInUse given resources as used by given task
36func (r *ResourcesSet) MarkInUse(resources []string, task *Task) {
37 for _, resource := range resources {
38 r.set[resource] = task
39 }
40}
41
42// UsedBy checks whether one of given resources
43// is used by a task and if yes returns slice of such task

Callers 2

consumerMethod · 0.80
RunTaskInBackgroundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected