摘要: 1. 前言 在 Go 语言中,上下文 context.Context 用来设置截止日期,同步信号,传递值的功能,它与 goroutine 关系密切,被用来解决 goroutine 之间 退出通知,元数据传递 等的任务。本文通过示例代码来学习梳理 context.Context 包,希望做到从入门到深 阅读全文
posted @ 2021-12-15 13:21 lubanseven 阅读(769) 评论(0) 推荐(0) 编辑