That explains everything. I started to work on 1591 before you committed 1516, and was looking for something like this close() method the entire morning ... :)
I agree with everything you say. This PerfTask.close() also allows one to write a Close<task name> task, in case calling that close() is necessary in the middle of the execution. Thanks ! On Sat, Apr 11, 2009 at 12:59 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > > For "larger" resources (my IndexReader, IndexWriter) I do think we > should make it explicit when they get closed?