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

Method GetFirst

pkg/task/queue/task_queue.go:319–323  ·  view source on GitHub ↗

GetFirst returns a head element.

()

Source from the content-addressed store, hash-verified

317
318// GetFirst returns a head element.
319func (q *TaskQueue) GetFirst() task.Task {
320 defer q.MeasureActionTime("GetFirst")()
321
322 return q.storage.GetFirst()
323}
324
325// addLast adds a new tail element.
326// It implements the merging logic for HookRun tasks by scanning the whole queue.

Callers 1

waitForTaskMethod · 0.95

Calls 2

MeasureActionTimeMethod · 0.95
GetFirstMethod · 0.65

Tested by

no test coverage detected