摘要:Context主要分两种,一种是实现超时控制的cancelCtx,一种是传递值得valueCtx。 type Context interface { Deadline() (deadline time.Time, ok bool) Done() <-chan struct{} Err() error
阅读全文
posted @ 2022-01-25 22:44
posted @ 2022-01-25 22:44
posted @ 2022-01-21 15:42