MCPcopy Create free account
hub / github.com/google/go-cloud / Stop

Method Stop

docstore/query.go:292–298  ·  view source on GitHub ↗

Stop stops the iterator. Calling Next on a stopped iterator will return io.EOF, or the error that Next previously returned.

()

Source from the content-addressed store, hash-verified

290// Stop stops the iterator. Calling Next on a stopped iterator will return io.EOF, or
291// the error that Next previously returned.
292func (it *DocumentIterator) Stop() {
293 if it.err != nil {
294 return
295 }
296 it.err = io.EOF
297 it.iter.Stop()
298}
299
300// As converts i to driver-specific types.
301// See https://gocloud.dev/concepts/as/ for background information, the "As"

Callers

nothing calls this directly

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected