[dancer-users] Non-blocking stuff
David H
untg99 at gmail.com
Tue Nov 17 01:09:39 GMT 2015
Thanks, I tried that with this sample code.
get '/TestingAssync' => sub {
delayed {
add_header 'X-Foo' => 'Bar';
flush;
content 'Hello, world';
done;
};
};
And I got this error:
String found where operator expected near "add_header 'X-Foo'"
(Do you need to predeclare add_header?)
?
On Tue, Nov 17, 2015 at 10:53 AM, Warren Young <wyml at etr-usa.com> wrote:
> On Nov 16, 2015, at 5:05 PM, David H <untg99 at gmail.com> wrote:
> >
> > I'm looking for some advice/pointers on having stuff non-block in my
> code.
>
>
> https://metacpan.org/pod/distribution/Dancer2/lib/Dancer2/Manual.pod#Delayed-responses-Async-Streaming
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151117/be063e23/attachment.html>
More information about the dancer-users
mailing list