]> Cypherpunks repositories - gostls13.git/commit
context: document that Err is unspecified before Done
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Feb 2017 20:48:45 +0000 (12:48 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 22 Feb 2017 17:42:28 +0000 (17:42 +0000)
commitdc6af19ff8b44e56abc1217af27fe098c78c932b
tree95a292b8cd24e229a809a55b9acf27214657296f
parentea48c9d2325dfe3ccd64a2bfeea9516cb5a1d2e3
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>
src/context/context.go