Bryan C. Mills 59b0df9b1f net/context: Don't leak goroutines in Done example.
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>
2015-02-12 17:18:52 +00:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2014-12-09 14:17:11 +11:00
2015-02-10 23:24:35 +00:00
2014-12-08 10:44:07 +11:00
2012-03-17 15:20:00 +11:00
2012-01-25 15:31:30 -05:00

This repository holds supplementary Go networking libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
[mirror] Go supplementary network libraries
Readme BSD-3-Clause 13 MiB
Languages
Go 99.9%