https://blog.csdn.net/qq_17612199/article/details/89786256
常见方法
- context.WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) 指定时长超时结束
- context.WithCancel(parent Context) (ctx Context, cancel CancelFunc) 手动结束
- context.WithDeadline(parent Context, d time.Time) (Context, CancelFunc) 指定时间结