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

Method Close

driver/ipfs-log/iterator.go:23–29  ·  view source on GitHub ↗

Close releases the iterator, making it unusable.

()

Source from the content-addressed store, hash-verified

21
22// Close releases the iterator, making it unusable.
23func (it *Iterator) Close() error {
24 if it.it != nil {
25 it.it.Release() // Release the underlying iterator.
26 it.it = nil // Set the iterator to nil to prevent further use.
27 }
28 return nil
29}
30
31// Valid returns whether the iterator is positioned at a valid item.
32func (it *Iterator) Valid() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected