mstplbg
- About: I blog about Perl, obviously.
Recent Actions
-
Commented on Long-running requests with Progress Bar in Dancer / AnyEvent
I guess you could also use the meta refresh tag. The advantage of the javascript solution is that it doesn’t cause a visible refresh in your browser and thus doesn’t disturb you. Since this is intended for an intranet application...
-
Posted Long-running requests with Progress Bar in Dancer / AnyEvent to mstplbg
…
-
Commented on AnyEvent and Dancer: CondVars
Hi! Sorry, I did not notice your comment earlier. I tried your example, but it does not work for me: >my $server = Twiggy::Server->new( host => '0.0.0.0', port => 5000 ); my $app = sub { my $env = shift;...
-
Posted AnyEvent and Dancer: CondVars to mstplbg
There’s nothing wrong with timers, but if you are using AnyEvent, you usually have to deal with CondVars. There are two things you can do with a CondVar: Either you register a callback which wi…
-
Posted Using AnyEvent and Dancer to mstplbg
…
Comment Threads
-
http://openid.prettybrd.com/leedo commented on
AnyEvent and Dancer: CondVars
Sorry, I missed your reply to this. That likely isn't working because the timer is going out of scope and being canceled. You can fix this by assigning it to a scalar like this:
my $app = sub { my $env = shift; return sub { my $respond = shift; my $t; $t = AnyEvent->timer(after => 1, cb => sub { undef $t; $respond->([200, [], ["hello world!"]]); }); }; };
-
AnyEvent commented on
Long-running requests with Progress Bar in Dancer / AnyEvent
Firstly, you missed an end ")" in your code example.
The most important thing is you don't even mention that your example code requires Twiggy to work. Same thing happens in your Dancer::Plugin::Progress document on CPAN.
I did notice your previous post which mentioned how you glue the AnyEvent and Dancer after hours of investigation.
Anyway, thank you for sharing the inspiration of "Progressing Bar". -
AnyEvent commented on
Long-running requests with Progress Bar in Dancer / AnyEvent
Firstly, you missed an end ")" in your code example.
The most important thing is you don't even mention that your example code requires Twiggy to work. Same thing happens in your Dancer::Plugin::Progress document on CPAN.
I did notice your previous post which mentioned how you glue the AnyEvent and Dancer after hours of investigation.
Anyway, thank you for sharing the inspiration of "Progressing Bar". -
AnyEvent commented on
Long-running requests with Progress Bar in Dancer / AnyEvent
Firstly, you missed an end ")" in your code example.
The most important thing is you don't even mention that your example code requires Twiggy to work. Same thing happens in your Dancer::Plugin::Progress document on CPAN.
I did notice your previous post which mentioned how you glue the AnyEvent and Dancer after hours of investigation.
Anyway, thank you for sharing the inspiration of "Progressing Bar".
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.