I am answering my own questions here ... so it seems I still have to call
render_later in the controller to make this work ..
async sub hello ($self) {
# Render template "example/welcome.html.ep" with message
*$self**->render_later;*
await Mojo::Promise->new(sub ($resolve,$fail) {
Mojo::IOLoop->timer(3 => sub {
$resolve->();
});
});
$self->render(text => 'hello');
}
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/mojolicious/d146761e-e634-455d-acb3-1a8007f8b076%40googlegroups.com.