Also, I'm using version: Dancer2-0.163000
On Tue, Nov 17, 2015 at 11:39 AM, David H <[email protected]> wrote: > 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 <[email protected]> wrote: > >> On Nov 16, 2015, at 5:05 PM, David H <[email protected]> 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 >> [email protected] >> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users >> > >
_______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
