Spread::Queue::FIFO - basic FIFO queue
use Spread::Queue::FIFO; my $q = new Spread::Queue::FIFO ("to-do list"); enqueue $q, "eat breakfast", "go to work"; my $task = dequeue $q;
Basic FIFO queue service. Not thread-safe.
Logging via Log::Channel.
my $q = new Spread::Queue::FIFO ("to-do list");
Creates a named FIFO queue. Name will be included in each log message.
enqueue $q, "eat breakfast", "go to work";
Append one or more items to the end of a queue.
my $node = dequeue $q; my ($queue_pending_time, $task) = @$node;
Remove the first item from the front of the queue and return it.
my $tasks = $q->pending;
Retrieve number of items in the queue.
foreach my $item ($q->all) { ... }
Return the queue contents as a list, for inspection.
Jason W. May <jmay@pobox.com>
Copyright (C) 2002 Jason W. May. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
L<Spread::Queue>
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Spread::Queue::FIFO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Spread::Queue::FIFO
CPAN shell
perl -MCPAN -e shell install Spread::Queue::FIFO
For more information on module installation, please visit the detailed CPAN module installation guide.