父級(jí)context定義了context,傳入到子級(jí)比如funca(){b,cancel:=context.WithTimeout(context.BackGround(),time.Second())cc(b)}funccc(ctxcontext.Context){select{case
新手上路,context包的withTimeout, withCancel之類的具體實(shí)用價(jià)值是啥各位有什么建議?
SMILET
2019-10-16 16:54:27