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@etr-usa.com> wrote:On Nov 16, 2015, at 5:05 PM, David H <untg99@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@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users