]> Cypherpunks repositories - gostls13.git/commit
runtime: improve AddCleanup documentation
authorAustin Clements <austin@google.com>
Sat, 7 Dec 2024 01:43:16 +0000 (20:43 -0500)
committerGopher Robot <gobot@golang.org>
Sat, 7 Dec 2024 02:32:07 +0000 (02:32 +0000)
commit8c3e391573403cf1cf85b3256e99d0c0b7d79b3a
tree54ab921f12b941eb7b7046bcc1fa31ca465768af
parent04cdaa9984682e36e7603dd7e40309fc916edb56
runtime: improve AddCleanup documentation

Steer people from SetFinalizer to AddCleanup. Address some of the
*non*-constraints on AddCleanup. Add some of the subtlety from the
SetFinalizer documentation to the AddCleanup documentation.

Updates #67535.
Updates #70425.

Change-Id: I8d13b756ca866051b8a5c19327fd5a76f5e0f3d7
Reviewed-on: https://go-review.googlesource.com/c/go/+/634318
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Austin Clements <austin@google.com>
src/runtime/mcleanup.go
src/runtime/mfinal.go