摘要: WithTimeout 超时自动取消方法,当执行一个go 协程时,超时自动取消协程 package main import ( "fmt" "time" "context" ) func main() { ctx, _ := context.WithTimeout(context.Backgroun 阅读全文
posted @ 2020-04-30 16:36 JaneySJ 阅读(8541) 评论(2) 推荐(0) 编辑