cloudaice / learnGo

there are something about Go Useage
MIT License
0 stars 0 forks source link

针对一个goroutine失败重启机制 #1

Open cloudaice opened 11 years ago

cloudaice commented 11 years ago

启动一个goroutine的时候,当需要保证它失败自动重启的时候,可以使用这两种方式 restart.go