【Go学习】golang context 超时控制
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) 指定时间结
作者:gtea
博客地址:https://www.cnblogs.com/gtea

浙公网安备 33010602011771号