Generic pool implementation
gpool implements a generic pool of objects. With generics this removes the ugly type checking required for xsync.Pool and also adds additional functionality like setting upper limits on active/idle objects and also allowing users to configure constructors, destructors and on get hooks to add extra checking while accessing these objects
gpool
works like a regular Go module:
> go get github.com/aloknerurkar/gpool
import "github.com/aloknerurkar/gpool"