diff options
author | Egon Elbre <egonelbre@gmail.com> | 2019-07-30 10:02:09 +0300 |
---|---|---|
committer | Sameer Ajmani <sameer@golang.org> | 2019-09-18 19:24:59 +0000 |
commit | 90f9426573e80bb072c80d7bf9fe3abd6d9a81ce (patch) | |
tree | 3e9f30016e4c4956f8892dd92c9a19931412267c /src/context | |
parent | 861556c5d7b83a75a66549ca4c7199e343f5eb40 (diff) | |
download | go-git-90f9426573e80bb072c80d7bf9fe3abd6d9a81ce.tar.gz |
context: mention asynchronous cancellation propagation
Fixes #33185
Change-Id: I0adcffa5d1c9e55ae52309c59f961b0710166098
Reviewed-on: https://go-review.googlesource.com/c/go/+/187921
Reviewed-by: Sameer Ajmani <sameer@golang.org>
Run-TryBot: Sameer Ajmani <sameer@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r-- | src/context/context.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context/context.go b/src/context/context.go index 62590850a6..390f93c078 100644 --- a/src/context/context.go +++ b/src/context/context.go @@ -67,6 +67,8 @@ type Context interface { // Done returns a channel that's closed when work done on behalf of this // context should be canceled. Done may return nil if this context can // never be canceled. Successive calls to Done return the same value. + // The close of the Done channel may happen asynchronously, + // after the cancel function returns. // // WithCancel arranges for Done to be closed when cancel is called; // WithDeadline arranges for Done to be closed when the deadline |