MCPcopy Create free account
hub / github.com/flant/shell-operator / AddFirst

Method AddFirst

pkg/task/queue/task_storage.go:137–142  ·  view source on GitHub ↗

AddFirst adds tasks to the front of the queue

(tasks ...task.Task)

Source from the content-addressed store, hash-verified

135
136// AddFirst adds tasks to the front of the queue
137func (ts *TaskStorage) AddFirst(tasks ...task.Task) {
138 ts.mu.Lock()
139 defer ts.mu.Unlock()
140
141 ts.addFirst(tasks...)
142}
143
144// RemoveFirst removes and returns the first task
145func (ts *TaskStorage) RemoveFirst() task.Task {

Callers

nothing calls this directly

Calls 1

addFirstMethod · 0.95

Tested by

no test coverage detected