package typedpool

Import Path
	github.com/pancsta/d2/d2layouts/d2talalayout/internal/typedpool (on go.dev)

Dependency Relation
	imports one package, and imported by 4 packages

Involved Source Files Package typedpool provides a type-safe wrapper around sync.Pool.
Package-Level Type Names (only one)
/* sort by: | */
Type Parameters: T: any Pool keeps sync.Pool's allocation behavior while making both Get and Put type-safe at their call sites. Get selects an arbitrary item from the pool or calls its allocator. Put adds value to the pool. func New[T](newValue func() T) *Pool[T]
Package-Level Functions (only one)
Type Parameters: T: any New constructs a typed pool whose allocator returns a fresh T.