in reply to How to use Net::Server
I think I found a solution. Completely untested.
Change
__PACKAGE__->run();
to
and create# Call back run_dequeue every $seconds seconds. __PACKAGE__->new( check_for_dequeue => $seconds )->run();
sub run_dequeue { my ($self) = @_; # Can't spend long here because it blocks the entire server. ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use Net::Server
by azmike (Initiate) on Oct 23, 2008 at 19:43 UTC |