官术网_书友最值得收藏!

WithDeadline

The WithDeadline method returns a copy of the parent context that expires after the current time is greater than deadline. At this point, the context's Done channel is closed and the resources associated are released. It also passes back a CancelFunc method that allows manual cancellation of the context:

func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) 
主站蜘蛛池模板: 宜阳县| 土默特右旗| 西峡县| 太仆寺旗| 衡水市| 松江区| 保定市| 马边| 临泽县| 安平县| 建水县| 栾川县| 新营市| 江门市| 利辛县| 宣武区| 佛坪县| 平顶山市| 鹤壁市| 张掖市| 金溪县| 垦利县| 关岭| 洛阳市| 奎屯市| 汝州市| 庆安县| 河西区| 博罗县| 微博| 昌图县| 临武县| 米易县| 麟游县| 山丹县| 平凉市| 泰州市| 大余县| 商城县| 金门县| 潢川县|