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

Method Quit

internal/metrics/manager.go:168–179  ·  view source on GitHub ↗

Quit 退出管理器

()

Source from the content-addressed store, hash-verified

166
167// Quit 退出管理器
168func (this *Manager) Quit() {
169 this.isQuiting = true
170
171 remotelogs.Println("METRIC_MANAGER", "quit")
172
173 this.locker.Lock()
174 for _, task := range this.taskMap {
175 _ = task.Stop()
176 }
177 this.taskMap = map[int64]Task{}
178 this.locker.Unlock()
179}

Callers 1

initFunction · 0.45

Calls 4

PrintlnFunction · 0.92
StopMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected