MCPcopy
hub / github.com/lonng/nano / try

Function try

scheduler/scheduler.go:55–62  ·  view source on GitHub ↗
(f func())

Source from the content-addressed store, hash-verified

53)
54
55func try(f func()) {
56 defer func() {
57 if err := recover(); err != nil {
58 log.Println(fmt.Sprintf("Handle message panic: %+v\n%s", err, debug.Stack()))
59 }
60 }()
61 f()
62}
63
64func Sched() {
65 if atomic.AddInt32(&started, 1) != 1 {

Callers 1

SchedFunction · 0.85

Calls 2

PrintlnMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected