Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Plack; use AnyEvent; our $timers = {}; my $app = sub { my $time = time(); $$timers{$time} = AE::timer 0, 0, sub { sleep 60; delete $$timers{$time} }; return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello World' ] +]; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AnyEvent code blocking Twiggy event loop
by basiliscos (Pilgrim) on Apr 27, 2015 at 06:51 UTC | |
by Anonymous Monk on Apr 27, 2015 at 20:18 UTC | |
by basiliscos (Pilgrim) on Apr 27, 2015 at 23:26 UTC | |
by Anonymous Monk on Apr 27, 2015 at 23:06 UTC | |
|
Re: AnyEvent code blocking Twiggy event loop
by Anonymous Monk on Apr 26, 2015 at 23:56 UTC | |
by Anonymous Monk on Apr 27, 2015 at 00:15 UTC | |
by Corion (Patriarch) on Apr 27, 2015 at 07:27 UTC |