Skip to content

Commit 90f9426

Browse files
egonelbreSajmani
authored andcommitted
context: mention asynchronous cancellation propagation
Fixes #33185 Change-Id: I0adcffa5d1c9e55ae52309c59f961b0710166098 Reviewed-on: https://go-review.googlesource.com/c/go/+/187921 Reviewed-by: Sameer Ajmani <[email protected]> Run-TryBot: Sameer Ajmani <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 861556c commit 90f9426

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/context/context.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ type Context interface {
6767
// Done returns a channel that's closed when work done on behalf of this
6868
// context should be canceled. Done may return nil if this context can
6969
// never be canceled. Successive calls to Done return the same value.
70+
// The close of the Done channel may happen asynchronously,
71+
// after the cancel function returns.
7072
//
7173
// WithCancel arranges for Done to be closed when cancel is called;
7274
// WithDeadline arranges for Done to be closed when the deadline

0 commit comments

Comments
 (0)