MangoX::Queue::Job - A job consumed from MangoX::Queue
MangoX::Queue::Job is an object representing a job that has been consumed from MangoX::Queue. The object is just a document/job retrieved from the queue that is blessed, with an added desructor method.
This class is used internally by MangoX::Queue
use MangoX::Queue::Job; my $doc = {...}; my $job = new MangoX::Queue::Job($doc);
MangoX::Queue::Job implements the following attributes:
my $finished = $job->has_finished; $job->has_finished(1);
Is set to 1 when the job has finished, either through the DESTROY or finished methods.
1
DESTROY
finished
MangoX::Queue::Job implements the following methods:
Called automatically when $job goes out of scope, undef'd, or refcount goes to 0.
$job
Calls finished, emitting a finished event if it hasn't already been emitted.
Emits a finished event if it hasn't already been emitted.
MangoX::Queue::Tutorial, Mojolicious, Mango
To install MangoX::Queue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MangoX::Queue
CPAN shell
perl -MCPAN -e shell install MangoX::Queue
For more information on module installation, please visit the detailed CPAN module installation guide.