From: Alan Donovan
Date: Tue, 21 Jun 2016 15:11:50 +0000 (-0400)
Subject: doc: describe vet -lostcancel in go1.7 release notes
X-Git-Tag: go1.7rc1~73
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaf4ad6f7493c222a6b27609fcb24e950eb540ab;p=gostls13.git
doc: describe vet -lostcancel in go1.7 release notes
Change-Id: Ie1c95fd0869307551bfcf76bf45c13372723fbba
Reviewed-on: https://go-review.googlesource.com/24288
Reviewed-by: Rob Pike
---
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