MCPcopy Index your code
hub / github.com/flant/shell-operator / newTaskStorage

Function newTaskStorage

pkg/task/queue/task_storage.go:18–23  ·  view source on GitHub ↗

newTaskStorage creates a new TaskStorage instance

()

Source from the content-addressed store, hash-verified

16
17// newTaskStorage creates a new TaskStorage instance
18func newTaskStorage() *TaskStorage {
19 return &TaskStorage{
20 items: list.New[task.Task](),
21 idIndex: make(map[string]*list.Element[task.Task]),
22 }
23}
24
25// Private methods (without locking)
26

Calls 1

NewFunction · 0.92