package pools
import "github.com/moby/buildkit/util/pools"
Index ¶
Types ¶
type Pool ¶
type Pool[T any] struct { // contains filtered or unexported fields }
Pool provides a typed wrapper around sync.Pool.
func New ¶
New returns a typed pool backed by sync.Pool.
func (*Pool[T]) Get ¶
func (p *Pool[T]) Get() T
Get returns a pooled value.
func (*Pool[T]) Put ¶
func (p *Pool[T]) Put(v T)
Put returns a value to the pool.
Source Files ¶
- Version
- v0.29.0 (latest)
- Published
- Mar 31, 2026
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 minute ago –
Tools for package owners.