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

Method Size

internal/utils/sets/set_fixed.go:55–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (this *FixedSet) Size() int {
56 this.locker.RLock()
57 defer this.locker.RUnlock()
58 return len(this.keys)
59}
60
61func (this *FixedSet) Reset() {
62 this.locker.Lock()

Callers 2

TestNewFixedSetFunction · 0.45
TestFixedSet_ResetFunction · 0.45

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 2

TestNewFixedSetFunction · 0.36
TestFixedSet_ResetFunction · 0.36