{"id":20315257,"url":"https://github.com/sysread/queue-priority","last_synced_at":"2026-05-11T14:34:18.996Z","repository":{"id":146316085,"uuid":"47640622","full_name":"sysread/Queue-Priority","owner":"sysread","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-08T18:39:21.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T07:26:29.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysread.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-08T18:18:44.000Z","updated_at":"2015-12-08T18:19:46.000Z","dependencies_parsed_at":"2023-04-15T11:32:01.208Z","dependency_job_id":null,"html_url":"https://github.com/sysread/Queue-Priority","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sysread/Queue-Priority","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2FQueue-Priority","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2FQueue-Priority/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2FQueue-Priority/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2FQueue-Priority/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysread","download_url":"https://codeload.github.com/sysread/Queue-Priority/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysread%2FQueue-Priority/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32899118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:18:31.575Z","updated_at":"2026-05-11T14:34:18.977Z","avatar_url":"https://github.com/sysread.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Queue::Priority\n\nSYNOPSIS\n        use Queue::Priority;\n        use List::Util qw( shuffle );\n\n        my $queue = Queue::Priority-\u003enew( 10 );\n\n        foreach my $i ( shuffle 1 .. 10 ) {\n            $queue-\u003einsert( $i );\n        }\n\n        while (1) {\n            my $i = $queue-\u003eremove or last;\n            printf \"%d * 2 = %d\\n\", $i, $i * 2;\n        }\n\nDESCRIPTION\n    Priority queues automatically order their contents according to the\n    inserted item's priority. Calling code must ensure that their queue\n    items are comparable via this strategy (e.g. by overloading the \u003c=\u003e\n    operator). This module is implemented as an array heap.\n\nMETHODS\n  new\n    Creates a new queue that can store $max items.\n\n  count\n    Returns the number of items currently stored.\n\n  is_empty\n    Returns true if the queue is empty.\n\n  is_full\n    Returns true if the queue is full.\n\n  peek\n    Returns the first (highest priority) element in the queue without\n    removing it from the queue.\n\n  is_shutdown\n    Returns true if the queue has been shut down.\n\n  shutdown\n    Shuts down the queue, after which no items may be inserted. Items\n    already in the queue can be pulled normally until empty, after which\n    further calls to \"remove\" will return undefined.\n\n  insert\n    Inserts an item into the queue. Dies if the queue is full, has been shut\n    down, or if the only argument is undefined.\n\n  remove\n    Removes and returns an item from the queue. If the queue is empty or\n    shutdown, returns undefined immediately.\n\nDEBUG\n  dump\n    Prints an indented representation of the heap structure.\n\nAUTHOR\n    Jeff Ober \u003cjeffober@gmail.com\u003e\n\nCOPYRIGHT AND LICENSE\n    This software is copyright (c) 2015 by Jeff Ober.\n\n    This is free software; you can redistribute it and/or modify it under\n    the same terms as the Perl 5 programming language system itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysread%2Fqueue-priority","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysread%2Fqueue-priority","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysread%2Fqueue-priority/lists"}