Fork me on GitHub
#babashka
<
2022-03-27
>
borkdude06:03:41

@roguas I was set on the wrong foot by the "must handle signal" way of approaching this problem. There is a supported way in Java-land to clean up before shutdown and that is by adding a shutdown hook and that already works in babashka:

(.addShutdownHook (Runtime/getRuntime)
                  (Thread. #(prn "b")))
I think I'll remove the (officially unsupported) interop on the Signal classes, if that is what you were looking for.

👍 2
rmxm12:03:52

Will test

craftybones06:03:42

@borkdude - man…scittle is so awesome

❤️ 1
craftybones06:03:16

I wrote this tiny little slideshow thing. So useful and handy

borkdude06:03:43

Oh cool! Please add a link here! :) There is also #scittle now

craftybones06:03:41

I’ll clean it up and share for sure

👍 1