summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorSameer Ajmani <sameer@google.com>2023-03-28 17:44:18 -0400
committerSameer Ajmani <sameer@golang.org>2023-03-29 20:41:09 +0000
commit1844b541664525a0298603154915e74ca742e406 (patch)
tree906703c13906f02bb9b811688bbe205858ec4aa2 /api
parentc2923971600a89db65daee86858f5fc054322129 (diff)
downloadgo-git-1844b541664525a0298603154915e74ca742e406.tar.gz
context: add WithoutCancel
WithoutCancel returns a copy of parent that is not canceled when parent is canceled. The returned context returns no Deadline or Err, and its Done channel is nil. Calling Cause on the returned context returns nil. API changes: +pkg context, func WithoutCancel(Context) Context Fixes #40221 Change-Id: Ide29631c08881176a2c2a58409fed9ca6072e65d Reviewed-on: https://go-review.googlesource.com/c/go/+/479918 Run-TryBot: Sameer Ajmani <sameer@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'api')
-rw-r--r--api/next/40221.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/40221.txt b/api/next/40221.txt
new file mode 100644
index 0000000000..ed513401e1
--- /dev/null
+++ b/api/next/40221.txt
@@ -0,0 +1 @@
+pkg context, func WithoutCancel(Context) Context #40221