aurbroszniowski / Rainfall-core

Rainfall is an extensible java framework to implement custom DSL based stress and performance tests
Apache License 2.0
11 stars 16 forks source link

Make RunsDuring execution more polite in how it terminates #39

Closed cschanck closed 8 years ago

cschanck commented 8 years ago

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.