#How to end threads gracefully

1 messages · Page 1 of 1 (latest)

steel surgeBOT
#

<@&987246487241105418> please have a look, thanks.

atomic wave
#

also, forgot to mention, i am calling shutdownnow()

celest nacelle
#

Well yes, since Thread.currentthread.interrupt() is what cause InterruptedThread exception, so you are catching an exception to throw it again

celest nacelle
atomic wave
#

is the correct way to handle it to just print a message and do nothing else?