{"action":"reopened","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/4860","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/4860/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/4860/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/4860/events","html_url":"https://github.com/neo4j/neo4j/issues/4860","id":89534632,"number":4860,"title":"Question regarding org.neo4j.helpers.collection.IteratorUtil#single","user":{"login":"ducky427","id":83426,"avatar_url":"https://avatars.githubusercontent.com/u/83426?v=3","gravatar_id":"","url":"https://api.github.com/users/ducky427","html_url":"https://github.com/ducky427","followers_url":"https://api.github.com/users/ducky427/followers","following_url":"https://api.github.com/users/ducky427/following{/other_user}","gists_url":"https://api.github.com/users/ducky427/gists{/gist_id}","starred_url":"https://api.github.com/users/ducky427/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducky427/subscriptions","organizations_url":"https://api.github.com/users/ducky427/orgs","repos_url":"https://api.github.com/users/ducky427/repos","events_url":"https://api.github.com/users/ducky427/events{/privacy}","received_events_url":"https://api.github.com/users/ducky427/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T10:57:36Z","updated_at":"2015-08-07T19:59:46Z","closed_at":null,"body":"Looking at the code of the method [`org.neo4j.helpers.collection.IteratorUtil#single`](https://github.com/neo4j/neo4j/blob/28484b2ca5a6cff28ff4003dfab6c8e2e39c4594/community/kernel/src/main/java/org/neo4j/helpers/collection/IteratorUtil.java#L337), I notice that the function will close a `Resource` if it is passed (thinking of `ResourceIterator`).\r\n\r\nThis is not mentioned in the documentation.  So could this be added to the doc string so that people can rely on that fact?\r\n\r\nThanks!"}}