Next returns either the next reference or a boolean `false` value indicating that the iteration is over. On errors, return an error (in this case, the caller must still call `Close()`).
()
| 81 | // indicating that the iteration is over. On errors, return an error |
| 82 | // (in this case, the caller must still call `Close()`). |
| 83 | func (iter *ReferenceIter) Next() (Reference, bool, error) { |
| 84 | ref, ok := <-iter.refCh |
| 85 | if !ok { |
| 86 | return Reference{}, false, <-iter.errCh |
| 87 | } |
| 88 | |
| 89 | return ref, true, nil |
| 90 | } |
no outgoing calls
no test coverage detected