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

Method getContextSlice

pkg/task/queue/task_queue.go:219–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219func (q *TaskQueue) getContextSlice() []bindingcontext.BindingContext {
220 return *contextSlicePool.Get().(*[]bindingcontext.BindingContext)
221}
222
223func (q *TaskQueue) putContextSlice(slice *[]bindingcontext.BindingContext) {
224 *slice = (*slice)[:0] // Reset slice

Callers 1

compactionMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected