MCPcopy Index your code
hub / github.com/tinode/chat / Add

Method Add

server/sessionstore.go:35–43  ·  view source on GitHub ↗
(delta int)

Source from the content-addressed store, hash-verified

33}
34
35func (w *boundedWaitGroup) Add(delta int) {
36 if delta <= 0 {
37 return
38 }
39 for range delta {
40 w.sem <- struct{}{}
41 }
42 w.wg.Add(delta)
43}
44
45func (w *boundedWaitGroup) Done() {
46 select {

Callers 1

NewSessionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected