MCPcopy Create free account
hub / github.com/DNAProject/DNA / ForEachSession

Method ForEachSession

http/websocket/session/sessionlist.go:84–90  ·  view source on GitHub ↗
(visit func(*Session))

Source from the content-addressed store, hash-verified

82}
83
84func (self *SessionList) ForEachSession(visit func(*Session)) {
85 self.RLock()
86 defer self.RUnlock()
87 for _, v := range self.mapOnlineList {
88 visit(v)
89 }
90}

Callers 1

checkSessionsTimeoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected