From 0148f6ef120fc58a042f32012e07c74996ddfeff Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Tue, 14 Apr 2015 22:13:56 -0700 Subject: [PATCH] More Close() docs --- graph/iterator/hasa_iterator.go | 3 +++ graph/iterator/linksto_iterator.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/graph/iterator/hasa_iterator.go b/graph/iterator/hasa_iterator.go index 031c3b0..21dbb16 100644 --- a/graph/iterator/hasa_iterator.go +++ b/graph/iterator/hasa_iterator.go @@ -247,6 +247,9 @@ func (it *HasA) Stats() graph.IteratorStats { } // Close the subiterator, the result iterator (if any) and the HasA. +// +// Note: as this involves closing multiple iterators, only the first error +// encountered while closing will be reported (if any). func (it *HasA) Close() error { var ret error diff --git a/graph/iterator/linksto_iterator.go b/graph/iterator/linksto_iterator.go index bf51293..0b2f9c4 100644 --- a/graph/iterator/linksto_iterator.go +++ b/graph/iterator/linksto_iterator.go @@ -181,6 +181,9 @@ func (it *LinksTo) Result() graph.Value { } // Close our subiterators. +// +// Note: as this involves closing multiple subiterators, only the first error +// encountered while closing will be reported (if any). func (it *LinksTo) Close() error { var ret error