[go] runtime: correct chansend block parameter comment

0 views
Skip to first unread message

Michael Pratt (Gerrit)

unread,
Aug 10, 2026, 1:59:43 PM (16 hours ago) Aug 10
to Michael Pratt, Gerrit Bot, en li, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Carlos Amedee, golang...@luci-project-accounts.iam.gserviceaccount.com, Michael Knyszek, Gopher Robot, golang-co...@googlegroups.com

Michael Pratt submitted the change

Change information

Commit message:
runtime: correct chansend block parameter comment

The chansend signature now uses a boolean block parameter, but the
comment still describes the previous pointer-based API and g.param
wake-up mechanism.

Update the comment to describe the current blocking and return behavior
and the panic on a send to a closed channel.

Tests were not run because this is a comment-only change.
Change-Id: I57b1039226757a722dc7039c55a5f501b9bae8d8
GitHub-Last-Rev: 4b1108f44625d35212da1bcdf3557363f4f3e3e5
GitHub-Pull-Request: golang/go#80780
Reviewed-by: Michael Pratt <mpr...@google.com>
Reviewed-by: Carlos Amedee <car...@golang.org>
Files:
  • M src/runtime/chan.go
Change size: S
Delta: 1 file changed, 4 insertions(+), 12 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I57b1039226757a722dc7039c55a5f501b9bae8d8
Gerrit-Change-Number: 811900
Gerrit-PatchSet: 2
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: en li <lie...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages