diff options
| author | yongqijia <YongqiJia520@gmail.com> | 2026-02-09 14:12:22 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-17 11:55:36 -0700 |
| commit | 8e1ecee49120359594cad3b3e6e6464eb3945f49 (patch) | |
| tree | f58116aba0938644869af42421e58edbb32d6f88 /src/os/exec/exec.go | |
| parent | 65f76a20a32fc2a63f22f681591813e568506c9d (diff) | |
| download | go-8e1ecee49120359594cad3b3e6e6464eb3945f49.tar.xz | |
context: fix package doc description of WithDeadlineCause and WithTimeoutCause
The package documentation incorrectly states that WithCancelCause,
WithDeadlineCause, and WithTimeoutCause all return a CancelCauseFunc.
In fact, only WithCancelCause returns a CancelCauseFunc. WithDeadlineCause
and WithTimeoutCause accept a cause error parameter directly and return
a plain CancelFunc.
Update the documentation to accurately describe the difference.
Fixes #77478
Change-Id: I581f8a954dd98567bc46e74ded62af927cc48fb2
Reviewed-on: https://go-review.googlesource.com/c/go/+/750824
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
