]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
runtime: expand Pinner documentation
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 3 Dec 2025 23:07:26 +0000 (23:07 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 5 Dec 2025 21:32:23 +0000 (13:32 -0800)
commit76345533f70e149511b1f50dbee598d0980cf867
treee9681ce9e61c7b8d574728dc8813278b26e86a93
parentb133524c0f661b88fc31db0076a939e1466c8aad
runtime: expand Pinner documentation

This change expands the Pinner documentation based on a few points of
feedback.
- We need a note that the Pinner has a finalizer.
- We need a note that the Pinner is safe to reuse.

I also added a note that the zero value is ready to use, and expanded
upon the use-cases of a Pinner.

Fixes #76431.

Change-Id: I312385557e67a815db05def02c1b1d7dcaa9d764
Reviewed-on: https://go-review.googlesource.com/c/go/+/726641
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/pinner.go