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. ... }
In reply to Re: How to use Net::Server
by ikegami
in thread How to use Net::Server
by azmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |