From eaf4ad6f7493c222a6b27609fcb24e950eb540ab Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 21 Jun 2016 11:11:50 -0400 Subject: [PATCH] doc: describe vet -lostcancel in go1.7 release notes Change-Id: Ie1c95fd0869307551bfcf76bf45c13372723fbba Reviewed-on: https://go-review.googlesource.com/24288 Reviewed-by: Rob Pike --- doc/go1.7.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/go1.7.html b/doc/go1.7.html index 5f6b6a6934..8a76b369bc 100644 --- a/doc/go1.7.html +++ b/doc/go1.7.html @@ -288,6 +288,18 @@ To avoid confusion with the new -tests check, the old, unadvertised -test option has been removed; it was equivalent to -all -shadow.

+

+The vet command also has a new check, +-lostcancel, which detects failure to call the +cancellation function returned by the WithCancel, +WithTimeout, and WithDeadline functions in +Go 1.7's new context package (see below). +Failure to call the function prevents the new Context +from being reclaimed until its parent is cancelled. +(The background context is never cancelled.) +

+

Go tool dist

-- 2.48.1