MCPcopy
hub / github.com/MetaCubeX/mihomo / Close

Method Close

transport/xhttp/reuse.go:89–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (m *ReuseManager) Close() error {
90 if m == nil {
91 return nil
92 }
93 m.mu.Lock()
94 defer m.mu.Unlock()
95
96 for _, entry := range m.entries {
97 entry.close()
98 }
99 m.entries = nil
100 return nil
101}
102
103func (m *ReuseManager) cleanupLocked(now time.Time) {
104 kept := m.entries[:0]

Calls 1

closeMethod · 0.45