Your child thread will need to check Thread.interrupted() on a regular basis and exit if it returns true. 

It doesn't matter if your code has loops or not. You just need to choose various points in your code execution path to see whether cancellation is necessary.

Killing child thread from parent thread in java
Hello Drupal Community,

I am creating a menu which has a link to an "editorial". I created a taxonomy named "edito" and created articles (content type) that are tagged with this taxonomy. 

I need to recover the last article tagged with this taxonomy in the menu as a link (see image attached). Does anyone have an idea of how to achieve this ?

Thanks,
