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

Method Done

server/sessionstore.go:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (w *boundedWaitGroup) Done() {
46 select {
47 case _, ok := <-w.sem:
48 if !ok {
49 logs.Err.Panicln("boundedWaitGroup.sem closed.")
50 }
51 default:
52 logs.Err.Panicln("boundedWaitGroup.Done() called before Add().")
53 }
54 w.wg.Done()
55}
56
57func (w *boundedWaitGroup) Wait() {
58 w.wg.Wait()

Callers 11

topicInitFunction · 0.80
runProxyMethod · 0.80
writeOnceMethod · 0.80
runMethod · 0.80
TestDispatchSubscribeFunction · 0.80
TestDispatchLeaveFunction · 0.80
subscribeMethod · 0.80
leaveMethod · 0.80
testWriteLoopMethod · 0.80
unregisterSessionMethod · 0.80
registerSessionMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestDispatchSubscribeFunction · 0.64
TestDispatchLeaveFunction · 0.64
testWriteLoopMethod · 0.64