NAME

Net::Async::Gearman::Client - concrete Gearman client over an IO::Async::Stream

SYNOPSIS

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;

DESCRIPTION

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.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>