Prior, RunsDuring terminated by interrupting the threads, via a
shutdownNow() call on the ExecutorService. This is problematic,
as some libraries can react badly to the Thread interrupt.
This change moves instead to a boolean flag in RunsDuring, and
a call to shutdown() instead.
Prior, RunsDuring terminated by interrupting the threads, via a shutdownNow() call on the ExecutorService. This is problematic, as some libraries can react badly to the Thread interrupt.
This change moves instead to a boolean flag in RunsDuring, and a call to shutdown() instead.