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

Method Done

y/y.go:228–233  ·  view source on GitHub ↗

Done calls Done() on the WaitGroup.

()

Source from the content-addressed store, hash-verified

226
227// Done calls Done() on the WaitGroup.
228func (lc *Closer) Done() {
229 if lc == nil {
230 return
231 }
232 lc.waiting.Done()
233}
234
235// Wait waits on the WaitGroup. (It waits for NewCloser's initial value, AddRunning, and Done
236// calls to balance out.)

Callers 15

TestDropAllRaceFunction · 0.95
TestDropPrefixRaceFunction · 0.95
SubscribeMethod · 0.95
TestTxnCommitAsyncFunction · 0.95
mainFunction · 0.95
TestMulipleSignalsFunction · 0.95
listenForUpdatesMethod · 0.45
doneReadMethod · 0.45
doneCommitMethod · 0.45
sendMethod · 0.45
LoadMethod · 0.45
waitOnGCMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestDropAllRaceFunction · 0.76
TestDropPrefixRaceFunction · 0.76
TestTxnCommitAsyncFunction · 0.76
TestMulipleSignalsFunction · 0.76
TestDropAllManagedFunction · 0.36
TestConcurrentWriteFunction · 0.36
TestIterateParallelFunction · 0.36
TestGetSetRaceFunction · 0.36
TestMinReadTsFunction · 0.36
TestGoroutineLeakFunction · 0.36