摘要:
代码如下,如有问题请联系 baibaibai_000@163.com package work_test import ( "math/rand" "runtime" "sync" "testing" "time" ) // TestWorker // test目的:展示当多个worker同时处理一个通道的任务,被关闭时,通道剩余的任务需要被全部处... 阅读全文
posted @ 2019-01-29 17:29
MrBlue
阅读(368)
评论(0)
推荐(0)