Mesos::Dispatcher - base class for Mesos dispatchers
A parent class for event dispatchers to inherit from.
A Mesos::Channel, used for sending event data from Mesos C++ callbacks to perl.
A code ref to be invoked when an event is ready to be processed from the channel.
Normally this will be set by Mesos::Role::HasDispatcher.
my $dispatcher = Mesos::Dispatcher->new(%args) OPTIONAL %args cb channel
A shortcut for invoking the cb attribute.
Receive event data from the channel. Returns undef if no event data is available.
Wait for an event to be sent to the channel, invoke the cb attribute, and return the event arguments.
To install Mesos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mesos
CPAN shell
perl -MCPAN -e shell install Mesos
For more information on module installation, please visit the detailed CPAN module installation guide.