{"action":"opened","issue":{"url":"https://api.github.com/repos/chocoteam/choco-solver/issues/388","repository_url":"https://api.github.com/repos/chocoteam/choco-solver","labels_url":"https://api.github.com/repos/chocoteam/choco-solver/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/chocoteam/choco-solver/issues/388/comments","events_url":"https://api.github.com/repos/chocoteam/choco-solver/issues/388/events","html_url":"https://github.com/chocoteam/choco-solver/issues/388","id":147747633,"number":388,"title":"solver is not stopped by Thread.interrupt() method","user":{"login":"gregy4","id":5640112,"avatar_url":"https://avatars.githubusercontent.com/u/5640112?v=3","gravatar_id":"","url":"https://api.github.com/users/gregy4","html_url":"https://github.com/gregy4","followers_url":"https://api.github.com/users/gregy4/followers","following_url":"https://api.github.com/users/gregy4/following{/other_user}","gists_url":"https://api.github.com/users/gregy4/gists{/gist_id}","starred_url":"https://api.github.com/users/gregy4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregy4/subscriptions","organizations_url":"https://api.github.com/users/gregy4/orgs","repos_url":"https://api.github.com/users/gregy4/repos","events_url":"https://api.github.com/users/gregy4/events{/privacy}","received_events_url":"https://api.github.com/users/gregy4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T13:14:32Z","updated_at":"2016-04-12T13:14:32Z","closed_at":null,"body":"When a solver thread is running in some thread pool, support for java way of stopping a thread should be implemented. For example when a thread pool is shutdown.\r\n\r\nI think good place to check whether thread is interrupted is SearchLoop.launch method. In do-while loop it can be checked by Thread.isInterrupted() and in case it is true, the code when criteria are met can be reused. \r\n\r\n"}}