aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2015-02-10 18:40:36 -0500
committerBryan Mills <bcmills@google.com>2015-02-12 17:18:52 +0000
commit59b0df9b1f7abda5aab0495ee54f408daf182ce7 (patch)
treeeeae8755dcf254abd4c1d71e5e00fca585b430c3 /internal
parentec18079348e79eb393866e87d402a1a8cc580d7f (diff)
downloadnet-master.tar.gz
The current example leaks the DoSomethingSlow goroutine for an arbitrarily long time. In a real server, that can lead to an out-of-memory failure during events such as network outages; a more careful version of that example would be too long for a simple package doc. Fortunately, there are other short, common patterns using Done that don't leak and don't require a lot of explanation. Let's use one of those instead. Change-Id: I0ad0c6121d06b757a397e0e71be9e01ccfd75f77 Reviewed-on: https://go-review.googlesource.com/4490 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'internal')
0 files changed, 0 insertions, 0 deletions