摘要: Context包了解一下 为啥需要Context ​ 在并发编程中,由于超时、取消操作或者一些异常情况,往往需要进行抢占操作或者中断后续操作,context营运而生,channel也能用但是层级太深了的话channel就不好用了。 Context接口 type Context interface { 阅读全文
posted @ 2022-06-25 18:55 博客是个啥? 阅读(160) 评论(0) 推荐(0) 编辑