Go 的 context 到底怎么用:WithCancel、WithTimeout、WithValue从 Background 和 TODO 的区别讲起,用可运行的例子说明 WithCancel、WithDeadline、WithTimeout、WithValue 各自解决什么问题,以及为什么 context 要作为函数第一个参数往下传。2021-08-06技术笔记 / GoGocontext并发源码