Registry / utility / jackc-puddle-v2

jackc-puddle-v2

JSON →
library2.2.2gogounverified

A generic resource pool with type-parameterized API for Go.

go get github.com/jackc/puddle/v2
INSTALL
IMPORT
SIG · JACKC-PUDDLE-V2
J
jackc-puddle-v2
utilitygov2.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

puddle
github.com/jackc/puddle/v2

Create and use a generic resource pool.

package main import ( "context" "fmt" "github.com/jackc/puddle/v2" ) func main() { pool, _ := puddle.NewPool[int](context.Background(), 5) defer pool.Close() res, _ := pool.Acquire(context.Background()) fmt.Println(res.Value()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jackc-puddle-v2 — go get jackc-puddle-v2 · libregistry