I am not sure if I understand the amended documentation correctly. I can't 
tested it out maybe because the mojo version I am using does not support 
calling delay from controller.

Anyway, if I were using the right version, calling,

$self->delay(sub { ... }, sub { ... })

from an action subroutine of my controller would actually preserve the 
original $tx (under $self->req, and also $self?, the thing is that 
$self->respond_to needs to see $self->req->tx, and if I want to access that 
tx directly, I should call $self->tx or $self->req->tx?)? Also, if I want 
to fine-tune the error handling, the above will call the exception 
automatically, which I also want to do respond_to in case there is an 
exception. (like $delay->on(error => sub { my ($delay, $error) = @_; ... 
$self->respond_to(....); })), and how can I do it? It is still not very 
clear to me.

Thanks.

Daniel.

On Monday, 8 September 2014 13:38:34 UTC-4, sri wrote:
>
> I've added some more details to the description of the delay helper, maybe 
> that helps a bit.
>
>     
> https://github.com/kraih/mojo/commit/0eb02143a25d7acf321bb4422e173036cb0ae0f2
>
> --
> sebastian
>

-- 
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.

Reply via email to