MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / StopIteration

Function StopIteration

pkg/util/iterutil/iterutil.go:34–34  ·  view source on GitHub ↗

StopIteration returns a sentinel error that indicates stopping the iteration. This error should not be propagated further, i.e., if a closure returns this error, the loop should break returning nil error. For example: f := func(i int) error { if i == 10 { return iterutil.StopIteration() }

()

Source from the content-addressed store, hash-verified

32// // continue when nil error
33// }
34func StopIteration() error { return errStopIteration }
35
36// Map the nil if it is StopIteration, or keep the error otherwise
37func Map(err error) error {

Callers 2

FindBinaryOverloadFunction · 0.92
NewTypedUnaryExprFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…