SYNOPSIS

use Proc::JobQueue::BackgroundQueue;

my $queue = new Proc::JobQueue::BackgroundQueue;

$queue->add($job);

$queue->checkjobs;

$queue->finish;

DESCRIPTION

This is a job queue module for jobs that will be run in the background.

checkjobs() needs to be called periodically to start new jobs. When all the jobs are queued, a call to finish() will block until all the jobs have completed.

The finish() method is not compatible with runing in an event loop. If you need that functionality, see Proc::JobQueue::EventQueue.

SEE ALSO

Proc::JobQueue Proc::JobQueue::EventQueue

LICENSE

Copyright (C) 2007-2008 SearchMe, Inc. Copyright (C) 2008-2010 David Sharnoff. Copyright (C) 2011 Google, Inc. This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.