@vlaaad I'm looking at editing when main window is closed. I have found on-close-request event. Internet suggests Platform/exit is a reasonable thing to run. Is there a cljfx pattern or api to follow?
no api/pattern, use (Platform/exit)
there is also a thing called (Platform/setImplicitExit true)
to automatically exit jvm on closing window, and cljfx sets it to false to allow reloaded workflow
you can call (Platform/setImplicitExit true)
in your production initialization code after requiring cljfx
Ok, thanks.
btw, I seem to be having no luck on the implicit exit. need to get my logging going before being able to say conclusively what’s going on.
Oh, I just remembered, if you are using create-app
, you are using agents, and should call shutdown-agents
on exit, so probably exit should be explicit in that case
If your application eventually exits (in around a minute I think), then it's agent threads that are not allowing vm to finish