Is there a way retrieving the size of a sync.Pool
instance?
There’s an interesting solution about how to implement a pool yourself, giving you full control.
But for most cases, I would like to just use sync.Pool
and be done with it. Having the metrics would be nice though.
Any ideas?