WithPool allows setting a custom result pool for this iterator. Custom pooling can be useful to keep similar sized results together or to isolate data. By default all iterators use a shared pool.
(p *ResultPool)
| 333 | // can be useful to keep similar sized results together or to isolate data. By |
| 334 | // default all iterators use a shared pool. |
| 335 | func WithPool(p *ResultPool) PoolOption { |
| 336 | return PoolOption{p} |
| 337 | } |
| 338 | |
| 339 | func (o PoolOption) applyToJoinIterator(j *JoinIterator) { |
| 340 | j.pool = o.pool |
no outgoing calls
no test coverage detected