MCPcopy Index your code
hub / github.com/github/git-sizer / Next

Method Next

git/batch_obj_iter.go:148–156  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

146// be read asynchronously, but the last objects won't necessarily show
147// up here until `Close()` has been called.
148func (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}

Callers 1

ScanRepositoryUsingGraphFunction · 0.95

Calls 1

WaitMethod · 0.65

Tested by

no test coverage detected