On 05/11/2025 14:00, Remi Forax wrote:
:

If a thread is interrupted, it should stop ASAP.
So if you catch InterruptedException and rethrow a new exception, this should 
be okay (as Alan said).
Rethrowing the InterruptedException is okay. Throwing a new exception that is not an InterruptedException is okay too but only after restoring the interrupted status, otherwise the thread might block again is some catch block as it unwinds.

-Alan

Reply via email to