Next either returns the next object (its header and contents), or a `false` boolean value if no more objects are left. Objects need to be read asynchronously, but the last objects won't necessarily show up here until `Close()` has been called.
()
| 146 | // be read asynchronously, but the last objects won't necessarily show |
| 147 | // up here until `Close()` has been called. |
| 148 | func (iter *BatchObjectIter) Next() (ObjectRecord, bool, error) { |
| 149 | obj, ok := <-iter.objCh |
| 150 | if !ok { |
| 151 | return ObjectRecord{ |
| 152 | BatchHeader: missingHeader, |
| 153 | }, false, iter.p.Wait() |
| 154 | } |
| 155 | return obj, true, nil |
| 156 | } |
no test coverage detected