RequestObject requests that the object with the specified `oid` be processed. The objects registered via this method can be read using `Next()` in the order that they were requested.
(oid OID)
| 127 | // processed. The objects registered via this method can be read using |
| 128 | // `Next()` in the order that they were requested. |
| 129 | func (iter *BatchObjectIter) RequestObject(oid OID) error { |
| 130 | select { |
| 131 | case iter.oidCh <- oid: |
| 132 | return nil |
| 133 | case <-iter.ctx.Done(): |
| 134 | return iter.ctx.Err() |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | // Close closes the iterator and frees up resources. Close must be |
| 139 | // called exactly once. |
no test coverage detected