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

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) 
主站蜘蛛池模板: 兰溪市| 安龙县| 穆棱市| 海原县| 太仆寺旗| 泗水县| 美姑县| 汨罗市| 鲁山县| 肃宁县| 大渡口区| 靖边县| 原阳县| 琼中| 双牌县| 荣成市| 芷江| 丘北县| 漯河市| 屯门区| 泉州市| 静海县| 武陟县| 元阳县| 石河子市| 温泉县| 乌审旗| 连州市| 墨竹工卡县| 修文县| 枣强县| 龙岩市| 长沙县| 小金县| 临夏县| 黄浦区| 恩施市| 灵宝市| 上蔡县| 宿州市| 元氏县|