Net::Async::Gearman::Client - concrete Gearman client over an IO::Async::Stream
Net::Async::Gearman::Client
use IO::Async::Loop; use Net::Async::Gearman::Client; my $loop = IO::Async::Loop->new; my $client = Net::Async::Gearman::Client->new; $loop->add( $client ); $client->connect( host => $SERVER )->then( sub { $client->submit_job( func => "sum", arg => "10,20,30" ) })->then( sub { my ( $total ) = @_; say $total; Future->done; })->get;
This module combines the abstract Protocol::Gearman::Client with Net::Async::Gearman to provide an asynchronous concrete Gearman client implementation.
It provides no new methods of its own; all of the Gearman functionality comes from Protocol::Gearman::Client. See that module's documentation for more information.
Protocol::Gearman::Client
Paul Evans <leonerd@leonerd.org.uk>
To install Net::Async::Gearman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Gearman
CPAN shell
perl -MCPAN -e shell install Net::Async::Gearman
For more information on module installation, please visit the detailed CPAN module installation guide.