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

Method putContextSlice

pkg/task/queue/task_queue.go:223–226  ·  view source on GitHub ↗
(slice *[]bindingcontext.BindingContext)

Source from the content-addressed store, hash-verified

221}
222
223func (q *TaskQueue) putContextSlice(slice *[]bindingcontext.BindingContext) {
224 *slice = (*slice)[:0] // Reset slice
225 contextSlicePool.Put(slice)
226}
227
228func (q *TaskQueue) getMonitorIDSlice() []string {
229 return *monitorIDSlicePool.Get().(*[]string)

Callers 1

compactionMethod · 0.95

Calls 1

PutMethod · 0.80

Tested by

no test coverage detected