MCPcopy Create free account
hub / github.com/Cyinx/einx / recover

Method recover

module/module.go:148–154  ·  view source on GitHub ↗
(wait *sync.WaitGroup)

Source from the content-addressed store, hash-verified

146}
147
148func (this *module) recover(wait *sync.WaitGroup) {
149 if r := recover(); r != nil {
150 slog.LogError("module_recovery", "recover error :%v", r)
151 slog.LogError("module_recovery", "%s", string(debug.Stack()))
152 go this.Run(wait) // continue to run
153 }
154}
155
156func (this *module) Run(wait *sync.WaitGroup) {
157 runtime.LockOSThread()

Callers 1

RunMethod · 0.95

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected