Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ trySingleflight
Struct
trySingleflight
agent/agent.go:583–586 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
581
}
582
583
type
trySingleflight
struct
{
584
mu sync.Mutex
585
m
map
[string]
struct
{}
586
}
587
588
func
(t *trySingleflight) Do(key string, fn
func
()) {
589
t.mu.Lock()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected