]> Cypherpunks.ru repositories - gostls13.git/commit
context: support non-standard Context in Cause
authorIan Lance Taylor <iant@golang.org>
Mon, 11 Sep 2023 23:43:20 +0000 (16:43 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 23:32:41 +0000 (23:32 +0000)
commitfccd0b9b70255099691deca5dc1d577efcfc889b
tree089a705913cfe9c901522b44b945cf690cc22590
parent399b2a4b1b7857444c38305025cc793c9377e415
context: support non-standard Context in Cause

If Cause is called on a non-standard Context, call ctx.Err.

Fixes #62582

Change-Id: Iac4ed93203eb5529f8839eb479b6ee2ee5ff6cbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/527277
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/context/context.go
src/context/x_test.go