Does anyone know good ways to have a clean shutdown?
exitProcess()
terminates the service without waiting for any active processes to complete. Is there a way to wait for all the active process to complete before termination?
i
Igor P
01/20/2022, 9:09 AM
Does shutdownHook fit your needs?
💯 1
a
asavio
01/20/2022, 10:26 AM
It does! Turns out my codebase already has this implemented. They had done shutdownHooks, haha.