in reply to How to use Net::Server

I think I found a solution. Completely untested.

Change

__PACKAGE__->run();

to

# Call back run_dequeue every $seconds seconds. __PACKAGE__->new( check_for_dequeue => $seconds )->run();
and create
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
    Awesome! I need to poke around a bit to understand what that is doing but at first look I think it's exactly what I'm looking for!

    Thank you!