{"id":21107474,"url":"https://github.com/cjhdev/timeout_queue","last_synced_at":"2025-03-14T09:22:20.205Z","repository":{"id":62558994,"uuid":"201060535","full_name":"cjhdev/timeout_queue","owner":"cjhdev","description":"Like Ruby Queue but supports pop timeout","archived":false,"fork":false,"pushed_at":"2024-01-11T11:14:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T10:51:15.765Z","etag":null,"topics":["queue","ruby","timeout"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjhdev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-07T13:53:31.000Z","updated_at":"2024-02-06T15:31:19.000Z","dependencies_parsed_at":"2024-01-11T13:19:12.552Z","dependency_job_id":"14375284-26fa-42fd-bbf1-8ca08bf5cada","html_url":"https://github.com/cjhdev/timeout_queue","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Ftimeout_queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Ftimeout_queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Ftimeout_queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Ftimeout_queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/timeout_queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551409,"owners_count":20309338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["queue","ruby","timeout"],"created_at":"2024-11-20T00:40:04.477Z","updated_at":"2025-03-14T09:22:20.181Z","avatar_url":"https://github.com/cjhdev.png","language":"Ruby","readme":"timeout_queue\n=============\n\nIt's like Queue except:\n\n- #pop has an optional timeout\n- #unshift will put an object on the front of the queue\n- #delete can remove an object from the queue\n\n## Usage\n\nInstall as a Gem using your preferred method.\n\nRequire:\n\n~~~\nrequire 'timeout_queue'\n~~~\n\nUse:\n\n~~~\nq = TimeoutQueue.new\n\nbegin\n\n    # wait for no more than one second\n    q.pop(timeout: 1)\n    \nrescue ThreadError\n    \n    # you timed out\n    \nend\n~~~\n\n## License\n\ntimeout_queue has an MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Ftimeout_queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Ftimeout_queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Ftimeout_queue/lists"}