JSAT icon indicating copy to clipboard operation
JSAT copied to clipboard

fr: make long running loops cancelable

Open salamanders opened this issue 7 years ago • 2 comments

When I call evaluateCrossValidation, I may want to give up after a certain amount of time. Instead of building in some "isRunning" boolean, would it be easier to check in the loops for https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html if (Thread.interrupted()) { in key areas?

salamanders avatar Aug 23 '17 16:08 salamanders

Are you asking how this could be done, or to have it integrated into the current code?

I'm about to start a Java-8 transition, so if you want that added its going to be a bit.

EdwardRaff avatar Sep 23 '17 02:09 EdwardRaff

It is a low priority feature request.

salamanders avatar Sep 26 '17 05:09 salamanders