It sounds like you're seeking the wrong solution, but it's impossible to
tell for sure without more detailed information.
If you're on the right track, then maybe you need END {...}, but there's no
guaranties for any of these solutions to actually work.
On Friday, July 31, 2015 at 5:51:41 PM UTC+2, Хозов Андрей wrote:
>
> What is the best way to see that Mojolicious app is terminated
> (application running via hypnotoad/morbo)? This can be useful when you need
> to aggregate some data in memory and periodically flushing the data in the
> persistent store.
>
> Should I use sub DESTROY inside the app for this? Or I need just subscribe
> to the event finish in Mojo::IOLoop? Are there any ways to do this?
>
>
> --
> Andrey Khozov
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.