Shutdown hooks are not for long running tasks or u...
# tornadofx
a
Shutdown hooks are not for long running tasks or user tasks. I am using it for graceful shutdown of internal components like - saving app config, closing spring context, terminating daemon thread pool, closing plugin manager etc. But it totally depends upon use case. If we want to complete a user task before shutdown then of course we should display progress and make it cancellable.
👍 1