Async-Interrupt
view release on metacpan or search on metacpan
Interrupt.pm view on Meta::CPAN
to interrupt background processes regularly to send map updates to game
clients.
Or L<EV::Loop::Async> uses an interrupt object to wake up perl when new
events have arrived.
L<IO::AIO> and L<BDB> could also use this to speed up result reporting.
=item Speedy event loop invocation
One could use this module e.g. in L<Coro> to interrupt a running coro-thread
and cause it to enter the event loop.
Or one could bind to C<SIGIO> and tell some important sockets to send this
signal, causing the event loop to be entered to reduce network latency.
=back
=head2 HOW TO USE
You can use this module by creating an C<Async::Interrupt> object for each
technique to interrupt background processes regularly to send map
updates to game clients.
Or EV::Loop::Async uses an interrupt object to wake up perl when new
events have arrived.
IO::AIO and BDB could also use this to speed up result reporting.
Speedy event loop invocation
One could use this module e.g. in Coro to interrupt a running
coro-thread and cause it to enter the event loop.
Or one could bind to "SIGIO" and tell some important sockets to send
this signal, causing the event loop to be entered to reduce network
latency.
HOW TO USE
You can use this module by creating an "Async::Interrupt" object for
each such event source. This object stores a perl and/or a C-level
callback that is invoked when the "Async::Interrupt" object gets
signalled. It is executed at the next time the perl interpreter is
( run in 0.295 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )