MCPcopy
hub / github.com/grafana/dskit / NewBlocking

Function NewBlocking

gate/gate.go:147–151  ·  view source on GitHub ↗
(maxConcurrent int)

Source from the content-addressed store, hash-verified

145}
146
147func NewBlocking(maxConcurrent int) Gate {
148 return &blockingGate{
149 ch: make(chan struct{}, maxConcurrent),
150 }
151}
152
153type blockingGate struct {
154 ch chan struct{}

Callers 2

TestBlockingGateFunction · 0.85
NewFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBlockingGateFunction · 0.68