Look at the ResourceScope extensions above. They call the shutdown hook automatically upon finishing normally or exceptionally
p
phldavies
10/18/2024, 9:29 PM
There's an issue (https://github.com/arrow-kt/suspendapp/issues/115) with ktor since 2.3 including the shutdown hook. You'll want to disable it with the mentioned jvm property as you want suspendapp to control the shutdown.
a
Aeden Jameson
10/19/2024, 3:40 PM
@phldavies Thank you so much. I suspected something wasn't working quite right. This saved me a lot of time.