go/src/context
Weerasak Chongnguluam 119fafcaa5 context: avoid duplicate removeChild
When deadline has already passed,
current context is canceled before return cancel function.
So is unnecessary to call cancel with remove from parent again
in return cancel function.

Change-Id: I37c687c57a29d9f139c7fb648ce7de69093ed623
Reviewed-on: https://go-review.googlesource.com/c/50410
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-10-03 15:26:10 +00:00
..
benchmark_test.go context: add benchmarks for context cancellation 2018-05-29 21:57:30 +00:00
context.go context: avoid duplicate removeChild 2018-10-03 15:26:10 +00:00
context_test.go all: fix minor misspellings 2017-04-03 23:19:07 +00:00
example_test.go context: add docs to ExampleWithValue 2018-06-12 22:33:54 +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