MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Close

Method Close

driver/badger/iterator.go:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (it *Iterator) Close() error {
29 if it.it != nil {
30 it.it.Close()
31 it.it = nil
32 it.txn.Discard()
33 }
34 return nil
35}
36
37func (it *Iterator) Valid() bool {
38 ok := it.it.Valid()

Callers 2

PrevMethod · 0.95
LastMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected