You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: EvalResultIterator MUST BE CLOSED. If you call {@link #eval()} don't forget to call close() on the returned EvalResultIterator to free up the underlying resources.
it would be useful if EvalResultIterator implemented java.io.Closeable.
If the EvalResultIterator implemented Closeable, it would be possible to use try-with-resources to ensure that it is automatically called, and a bunch of finally blocks could be removed for cleaner and more simple code.
The text was updated successfully, but these errors were encountered:
hansenmc
changed the title
Change EvalResultIterator to implement java.io.Closable
Change EvalResultIterator to implement java.io.Closeable
Jan 14, 2018
Given the note in the JavaDocs for the ServerEvalIuationCall that the EvalResultIterator must be closed
it would be useful if EvalResultIterator implemented java.io.Closeable.
If the EvalResultIterator implemented Closeable, it would be possible to use try-with-resources to ensure that it is automatically called, and a bunch of finally blocks could be removed for cleaner and more simple code.
The text was updated successfully, but these errors were encountered: