MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / done

Method done

thirdparty/gotty/server/handler_atomic.go:44–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (counter *counter) done() int {
45 counter.mutex.Lock()
46 defer counter.mutex.Unlock()
47
48 counter.connections--
49 counter.wg.Done()
50 if counter.connections == 0 && counter.duration > 0 {
51 counter.zeroTimer.Reset(counter.duration)
52 }
53
54 return counter.connections
55}
56
57func (counter *counter) count() int {
58 counter.mutex.Lock()

Callers 10

WFunction · 0.80
index-lib.jsFile · 0.80
dtFunction · 0.80
BfFunction · 0.80
vFunction · 0.80
generateHandleWSMethod · 0.80
generateRoutesFunction · 0.80
permission.jsFile · 0.80
generateRoutesFunction · 0.80
permission.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected