summaryrefslogtreecommitdiff
path: root/typedsync/pool.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 13:02:57 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 13:33:02 -0700
commit5a1a904b4264c6ee323c9bd433f9ee4da93c984d (patch)
tree035414c8e8f3b94e24b482e5096a3b4e3688e257 /typedsync/pool.go
parent2d939c9c6e62395ed924fe7c5cd4c4b294e391a9 (diff)
typedsync: Bring up to being a mostly-drop-in replacement for Go 1.20 sync
Diffstat (limited to 'typedsync/pool.go')
-rw-r--r--typedsync/pool.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/typedsync/pool.go b/typedsync/pool.go
index c196085..370d70a 100644
--- a/typedsync/pool.go
+++ b/typedsync/pool.go
@@ -8,6 +8,11 @@ import (
"sync"
)
+// Pool is a type-safe equivalent of the standard library's sync.Pool.
+//
+// See the [sync.Pool documentation] for full details.
+//
+// [sync.Pool documentation]: https://pkg.go.dev/sync#Pool
type Pool[T any] struct {
New func() T