MCPcopy
hub / github.com/grafana/tempo / New

Function New

pkg/boundedwaitgroup/boundedwaitgroup.go:12–17  ·  view source on GitHub ↗

New creates a BoundedWaitGroup with the given concurrency.

(capacity uint)

Source from the content-addressed store, hash-verified

10
11// New creates a BoundedWaitGroup with the given concurrency.
12func New(capacity uint) BoundedWaitGroup {
13 if capacity == 0 {
14 panic("BoundedWaitGroup capacity must be greater than zero or else it will block forever.")
15 }
16 return BoundedWaitGroup{ch: make(chan struct{}, capacity)}
17}
18
19// Add the number of items to the group. Blocks until there is capacity.
20func (bwg *BoundedWaitGroup) Add(delta int) {

Callers 13

RetainWithConfigMethod · 0.92
DoMethod · 0.92
pollUnknownMethod · 0.92
NewAsyncSharderFuncFunction · 0.92
iterateBlocksMethod · 0.92
queryBucketForSummaryFunction · 0.92
blocksWithAnyTraceIDMethod · 0.92
RunMethod · 0.92
loadBucketFunction · 0.92
queryBucketFunction · 0.92

Calls

no outgoing calls