channel实现生产者、消费者模型
摘要:
const ( READ_TO_DISPATCH = "a" //派遣任务 READ_TO_EXECUTE = "e" //处理任务 CLOSE = "c" //退出 ) type SignChan chan string type DataChan chan interface{} type fn 阅读全文
posted @ 2020-04-16 15:59 thotf 阅读(317) 评论(0) 推荐(0)
浙公网安备 33010602011771号