MCPcopy Create free account
hub / github.com/aceld/zinx / Len

Method Len

znet/callbacks.go:100–109  ·  view source on GitHub ↗

Len returns the number of callback functions in the linked list Return value: Total number of currently registered callback functions

()

Source from the content-addressed store, hash-verified

98// Len returns the number of callback functions in the linked list
99// Return value: Total number of currently registered callback functions
100func (t *callbacks) Len() int {
101 var count int
102
103 // Traverse linked list to count
104 for callback := t.first; callback != nil; callback = callback.next {
105 count++
106 }
107
108 return count
109}

Callers 1

TestCallbackFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestCallbackFunction · 0.76