Closed mariusz-jachimowicz-83 closed 8 years ago
Thanks. This is an excellent point, which may show a flaw in my understanding of how InterruptedExceptions work.
I am working on solution for this.
@mariusz-jachimowicz-83 I think you'd want something like:
(while (not (Thread/interrupted))
...)
See the bottom of this page for the right way to deal with this. Swallowing was incorrect. Good catch.
http://www.yegor256.com/2015/10/20/interrupted-exception.html
Manually closed after PR merge
is not cancelling the future. It is due to catch of
inside
refresh-deployments-watch
. So this job is still running after reload code in repl.You can easly see this in plain repl. For instance when you run
this job is always running, it can't be cancelled, it is always recuring While without handling exception all is ok