summaryrefslogtreecommitdiff
path: root/typedsync/pool.go
diff options
context:
space:
mode:
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