Net::Async::Gearman::Worker - concrete Gearman worker over an IO::Async::Stream
Adds a new function to the collection known by the worker. On connection to the server, it will declare the names of all of these by using the
The code itself will be invoked with a Job object, and is expected to return a Future that will give the eventual result of the function. It is not necessary to invoke the
fail methods on the Job; that will be done automatically when the Future becomes ready.
$f = $code->( $job )
Consider how much of this code can or should be moved into Protocol::Gearman::Worker itself.
Paul Evans <email@example.com>