MCPcopy
hub / github.com/github/git-sizer / RequestObject

Method RequestObject

git/batch_obj_iter.go:129–136  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

127// processed. The objects registered via this method can be read using
128// `Next()` in the order that they were requested.
129func (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.

Callers 1

ScanRepositoryUsingGraphFunction · 0.95

Calls 2

ErrMethod · 0.80
DoneMethod · 0.65

Tested by

no test coverage detected