2021-03-11发表2024-12-24更新golang28 分钟读完 (大约4168个字)Golang Context包 详解context 主要用来在 goroutine 之间传递上下文信息,包括:取消信号、超时时间、截止时间、k-v 等。 context 用来解决 goroutine 之间退出通知、元数据传递的功能。阅读更多