Next returns either the next object (its OID, type, and size), or a `false` boolean value to indicate that there are no data left.
()
| 140 | // Next returns either the next object (its OID, type, and size), or a |
| 141 | // `false` boolean value to indicate that there are no data left. |
| 142 | func (iter *ObjectIter) Next() (BatchHeader, bool, error) { |
| 143 | header, ok := <-iter.headerCh |
| 144 | if !ok { |
| 145 | return missingHeader, false, iter.p.Wait() |
| 146 | } |
| 147 | return header, true, nil |
| 148 | } |
no test coverage detected