ZooKeeper::Dispatcher::Interrupt
A ZooKeeper::Dispatcher implementation that uses Async::Interrupt for dispatching.
In order to interrupt AnyEvent, during ZooKeeper::Dispatcher's wait call, the Interrupt implementation creates an AnyEvent timer to trigger every 100ms. This is needed because AnyEvent's recv blocks on a select call, which Async::Interrupt cannot interrupt by itself.
To install ZooKeeper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZooKeeper
CPAN shell
perl -MCPAN -e shell install ZooKeeper
For more information on module installation, please visit the detailed CPAN module installation guide.