POEx::WorkerPool::Types - Type constraints for POEx::WorkerPool
version 0.092530
This module exports the type constrains needed for POEx::WorkerPool.
For importing options see MooseX::Types.
Must compose the POEx::WorkerPool::Role::WorkerPool::Worker role.
Must compose the POEx::WorkerPool::Role::WorkerPool role.
Must compose the POEx::WorkerPool::Role::WorkerPool::Worker::Guts role.
Must compose the POEx::WorkerPool::Role::WorkerPool::Job role.
Must be one of the worker events defined in POEx::WorkerPool::WorkerEvents
JobStatus is what a Worker::Guts composed object must return. It consistes of a hash with three keys and potential forth depending on type. See below:
{ type => WorkerEvent, ID => Str, msg => Ref, percent_complete => Maybe[Int] }
percent_complete is only valid when type is +PXWP_JOB_PROGRESS
When constructing Jobs, each step must match a Tuple[CodeRef, ArrayRef] where the code ref is the actual thing to execute and the array ref is the collection of arguments to be passed to the code ref verbatim.
Nicholas Perez <nperez@cpan.org>
This software is copyright (c) 2009 by Infinity Interactive.
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 POEx::WorkerPool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::WorkerPool
CPAN shell
perl -MCPAN -e shell install POEx::WorkerPool
For more information on module installation, please visit the detailed CPAN module installation guide.