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

Method RemoveElement

pkg/task/queue/task_storage.go:216–221  ·  view source on GitHub ↗

RemoveElement removes an element from the list and updates the index

(element *list.Element[task.Task])

Source from the content-addressed store, hash-verified

214
215// RemoveElement removes an element from the list and updates the index
216func (ts *TaskStorage) RemoveElement(element *list.Element[task.Task]) task.Task {
217 ts.mu.Lock()
218 defer ts.mu.Unlock()
219
220 return ts.removeElement(element)
221}
222
223// GetLast returns the last task in the queue
224func (ts *TaskStorage) GetLast() task.Task {

Callers 1

compactionMethod · 0.80

Calls 1

removeElementMethod · 0.95

Tested by

no test coverage detected