PoolAt provides a way to Allocate and Release BufferAt objects PoolAt's mut be concurrent-safe for calls to Get() and Put().
| 12 | // PoolAt provides a way to Allocate and Release BufferAt objects |
| 13 | // PoolAt's mut be concurrent-safe for calls to Get() and Put(). |
| 14 | type PoolAt interface { |
| 15 | Get() (BufferAt, error) // Allocate a BufferAt |
| 16 | Put(buf BufferAt) error // Release or Reuse a BufferAt |
| 17 | } |
| 18 | |
| 19 | type poolAt struct { |
| 20 | poolAt sync.Pool |
no outgoing calls
no test coverage detected
searching dependent graphs…