proxy.golang.org : github.com/zekroTJA/safepool
Package safepool provides a wrapper for sync.Pool which ensures type and state safety. Because the type constraint on the pool, you can always rely to retrieve the expected type specified to the pool. Also, all objects put into the pool need to implement ResetState which sets the state of the objects to a clean "zero" state on putting it back into the pool.
Registry
-
Source
- Homepage
- Documentation
- JSON
purl: pkg:golang/github.com/zekro%21t%21j%21a/safepool
Keywords:
generics
, go
, golang
, package
, sync
License: MIT
Latest release: almost 2 years ago
First release: almost 2 years ago
Namespace: github.com/zekroTJA
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/zekroTJA
Last synced: 20 days ago