MCPcopy
hub / github.com/dgraph-io/badger / runCallback

Function runCallback

iterator.go:214–218  ·  view source on GitHub ↗
(cb func())

Source from the content-addressed store, hash-verified

212}
213
214func runCallback(cb func()) {
215 if cb != nil {
216 cb()
217 }
218}
219
220func (item *Item) prefetchValue() {
221 val, cb, err := item.yieldItemValue()

Callers 9

ReadMethod · 0.85
doRunGCMethod · 0.85
populateDiscardStatsMethod · 0.85
ValueMethod · 0.85
ValueCopyMethod · 0.85
yieldItemValueMethod · 0.85
prefetchValueMethod · 0.85
TestValueBasicFunction · 0.85
BenchmarkReadWriteFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestValueBasicFunction · 0.68
BenchmarkReadWriteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…