MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Do

Method Do

cli/pkg/common/try.go:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (tcf Block) Do() {
55 if tcf.Finally != nil {
56
57 defer tcf.Finally()
58 }
59 if tcf.Catch != nil {
60 defer func() {
61 if r := recover(); r != nil {
62 tcf.Catch(r)
63 }
64 }()
65 }
66 tcf.Try()
67}
68
69// 重试
70func Retry(attempts uint, sleep time.Duration, f func() error) (err error) {

Callers 5

doLoadConfigsMethod · 0.80
getMethod · 0.80
putMethod · 0.80
postMethod · 0.80
reset.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected