Does anyone know good ways to have a clean shutdow...
# server
a
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
Does shutdownHook fit your needs?
💯 1
a
It does! Turns out my codebase already has this implemented. They had done shutdownHooks, haha.