1
0
mirror of https://github.com/golang/go synced 2024-11-26 06:38:00 -07:00
go/src/context
Sameer Ajmani c4692da923 context: document how to release resources associated with Contexts.
Some users don't realize that creating a Context with a CancelFunc
attaches a subtree to the parent, and that that subtree is not released
until the CancelFunc is called or the parent is canceled.  Make this
clear early in the package docs, so that people learning about this
package have the right conceptual model.

Change-Id: I7c77a546c19c3751dd1f3a5bc827ad106dd1afbf
Reviewed-on: https://go-review.googlesource.com/24090
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-06-15 00:30:46 +00:00
..
context_test.go context: make DeadlineExceeded have a Timeout method 2016-05-19 23:09:16 +00:00
context.go context: document how to release resources associated with Contexts. 2016-06-15 00:30:46 +00:00
withtimeout_test.go context: attempt to deflake timing tests 2016-04-11 23:15:02 +00:00