go channel读写和关闭问题
写在前面 如果父子context都有超时控制,哪个先执行呢? 示例 go func main() { begin := time.Now() parentCtxTimeout := 4 // 父级 context 超时时间 childCtx
共 1 篇文章
写在前面 如果父子context都有超时控制,哪个先执行呢? 示例 go func main() { begin := time.Now() parentCtxTimeout := 4 // 父级 context 超时时间 childCtx