1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:20:02 -07:00
go/src/context
Ian Lance Taylor dc6af19ff8 context: document that Err is unspecified before Done
It could have been defined the other way, but since the behavior has
been unspecified, this is the conservative approach for people writing
different implementations of the Context interface.

Change-Id: I7334a4c674bc2330cca6874f7cac1eb0eaea3cff
Reviewed-on: https://go-review.googlesource.com/37375
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Sameer Ajmani <sameer@golang.org>
Run-TryBot: Sameer Ajmani <sameer@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-22 17:42:28 +00:00
..
benchmark_test.go context: adjust tests to avoid importing "testing" in package context 2016-11-03 21:12:21 +00:00
context_test.go all: make spelling consistent 2016-12-08 23:22:37 +00:00
context.go context: document that Err is unspecified before Done 2017-02-22 17:42:28 +00:00
example_test.go context: add comments to the WithCancel example, apply minor improvements 2016-10-26 22:35:07 +00:00
net_test.go context: make DeadlineExceeded implement net.Error 2016-10-05 15:53:04 +00:00
x_test.go context: adjust tests to avoid importing "testing" in package context 2016-11-03 21:12:21 +00:00