会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
luobote11
博客园
首页
新随笔
联系
订阅
管理
2020年10月18日
优雅结束goroutine的几种方法
摘要: 运行完直接结束 1 func Routine1() { 2 fmt.Println("Hello go!") 3 } 4 5 func TestRoutine1(t *testing.T) { 6 go Routine1() 7 fmt.Println("Hello world!") 8 } 等待协
阅读全文
posted @ 2020-10-18 23:19 luobote11
阅读(352)
评论(0)
推荐(0)
公告