POE::Queue::Array - a high-performance array-based priority queue
| Use Case | Command | Description |
|---|---|---|
| Create a new queue | my $queue = POE::Queue::Array->new(); | Creates a new array-based priority queue. |
| Enqueue an item | $queue->enqueue($priority, $item); | Adds an item with a given priority. |
| Dequeue an item | my $item = $queue->dequeue(); | Removes and returns the highest priority item. |
| Check if queue is empty | $queue->is_empty(); | Returns true if the queue has no items. |
See POE::Queue.
This class is an implementation of the abstract POE::Queue interface. As such, its documentation may be found in POE::Queue.
POE::Queue::Array implements a priority queue using Perl arrays, splice, and copious application of cleverness.
Despite its name, POE::Queue::Array may be used as a stand-alone priority queue without the rest of POE.
None currently known.
Please see POE for more information about authors, contributors, and POE's licensing.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-23 04:29 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)