Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
147
func
NewBlocking(maxConcurrent int) Gate {
148
return
&blockingGate{
149
ch: make(
chan
struct
{}, maxConcurrent),
150
}
151
}
152
153
type
blockingGate
struct
{
154
ch
chan
struct
{}
Callers
2
TestBlockingGate
Function · 0.85
New
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestBlockingGate
Function · 0.68