Coro::PrioChannel - Priority message queues for Coro
version 0.001
use Coro::PrioChannel; my $q = Coro::PrioChannel->new($maxsize); $q->put("xxx"[, $prio]); print $q->get;
A Coro::PrioChannel is exactly like Coro::Channel, but with priorities. The priorities are the same as for Coro itself.
Unlike Coro::Channel, you do have to load this module directly.
Create a new channel with the given maximum size. Giving a size of one defeats the purpose of a priority queue.
Put the given scalar into the queue.
Return the next element from the queue at the highest priority, waiting if necessary.
Same as Coro::Channel.
Darin McBride <dmcbride@cpan.org>
This software is copyright (c) 2012 by Darin McBride.
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 Coro::PrioChannel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Coro::PrioChannel
CPAN shell
perl -MCPAN -e shell install Coro::PrioChannel
For more information on module installation, please visit the detailed CPAN module installation guide.