By no means am I an expert, but I would do what you say with either:

* Minions
* or just simply place the cleanup code inside a Mojo::IOLoop->next_tick(sub { ... })

Let's see what others who have more experience will say.

On 27/12/15 12:13, Andrew Nugged wrote:
My app done with rendering,
I want it send user all data,
and _only then_ I want it to do some special DB requests and stats collection procedures and cleanups
to finalize request, but not to increase latency for client.

How to do that? There is seems no hooks further than after_dispatch, right?

Or maybe I should somehow build myself in controller destruction phase?

Thanks.
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

--
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to