MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Ack

Method Ack

internal/utils/ratelimit/counter.go:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (this *Counter) Ack() bool {
35 select {
36 case this.sem <- zero.New():
37 return true
38 case <-this.done:
39 return false
40 }
41}
42
43func (this *Counter) Release() {
44 select {

Callers 4

TestCounter_ACKFunction · 0.45
TestCounter_ReleaseFunction · 0.45
TestBandwidthFunction · 0.45
TestBandwidth_0Function · 0.45

Calls 1

NewFunction · 0.92

Tested by 4

TestCounter_ACKFunction · 0.36
TestCounter_ReleaseFunction · 0.36
TestBandwidthFunction · 0.36
TestBandwidth_0Function · 0.36