| 9 | var DefaultPool = NewResultPool(10) |
| 10 | |
| 11 | type ResultPool struct { |
| 12 | pool *sync.Pool |
| 13 | cap int |
| 14 | } |
| 15 | |
| 16 | // NewResultPool creates a pool for reusing IteratorResults. New items are created |
| 17 | // with the given default capacity. Using different pools is helpful to keep |
nothing calls this directly
no outgoing calls
no test coverage detected