MCPcopy
hub / github.com/tinode/chat / newBoundedWaitGroup

Function newBoundedWaitGroup

server/sessionstore.go:31–33  ·  view source on GitHub ↗
(capacity int)

Source from the content-addressed store, hash-verified

29}
30
31func newBoundedWaitGroup(capacity int) *boundedWaitGroup {
32 return &boundedWaitGroup{sem: make(chan struct{}, capacity)}
33}
34
35func (w *boundedWaitGroup) Add(delta int) {
36 if delta <= 0 {

Callers 2

NewSessionMethod · 0.85
test_makeSessionFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_makeSessionFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…