AnyEvent::Gearman::WorkerPool::Worker - A worker launched by Slot
version 1.0
make TestWorker.pm
package TestWorker; use Any::Moose; extends 'AnyEvent::Gearman::WorkerPool::Worker'; sub slowreverse{ DEBUG 'slowreverse'; my $self = shift; my $job = shift; my t = AE::timer 1,0, sub{ my $res = reverse($job->workload); $job->complete( $res ); }; } sub reverse{ my $self = shift; my $job = shift; my $res = reverse($job->workload); $job->complete( $res ); } sub _private{ my $self = shift; my $job = shift; $job->complete(); }
You can see only 'reverse'
HyeonSeung Kim <sng2nara@hanmail.net>
This software is copyright (c) 2012 by HyeonSeung Kim.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::Gearman::WorkerPool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Gearman::WorkerPool
CPAN shell
perl -MCPAN -e shell install AnyEvent::Gearman::WorkerPool
For more information on module installation, please visit the detailed CPAN module installation guide.