{"id":19779507,"url":"https://github.com/senid231/async_resource_pool","last_synced_at":"2026-06-11T19:31:28.389Z","repository":{"id":59150769,"uuid":"175395622","full_name":"senid231/async_resource_pool","owner":"senid231","description":"Async Resource Pool","archived":false,"fork":false,"pushed_at":"2019-03-14T20:47:41.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T12:34:06.238Z","etag":null,"topics":["async","fiber","nio4r","pool","queue","ruby"],"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/senid231.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-13T10:11:20.000Z","updated_at":"2019-03-14T20:47:42.000Z","dependencies_parsed_at":"2022-09-13T10:50:21.088Z","dependency_job_id":null,"html_url":"https://github.com/senid231/async_resource_pool","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/senid231/async_resource_pool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/senid231%2Fasync_resource_pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/senid231%2Fasync_resource_pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/senid231%2Fasync_resource_pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/senid231%2Fasync_resource_pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/senid231","download_url":"https://codeload.github.com/senid231/async_resource_pool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/senid231%2Fasync_resource_pool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34215253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["async","fiber","nio4r","pool","queue","ruby"],"created_at":"2024-11-12T05:34:55.301Z","updated_at":"2026-06-11T19:31:28.370Z","avatar_url":"https://github.com/senid231.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncResourcePool\n\n[![Gem Version](https://badge.fury.io/rb/async_resource_pool.svg)](https://rubygems.org/gems/async_resource_pool)\n[![Build Status](https://travis-ci.com/senid231/async_resource_pool.svg?branch=master)](https://travis-ci.com/senid231/async_resource_pool)\n\nTODO:\n* write description\n* acquire more than one connection\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'async_resource_pool'\n```\n\nor \n\n```ruby\ngem 'async/resource_pool'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install async_resource_pool\n\n## Usage\n\nTODO: Write usage instructions here\n\n```ruby\npool = Async::ResourcePool.new(2)\n\nAsync do\n  \n    Async do\n        pool.acquire do\n            Async::Task.current.sleep(6) \n        end\n    end\n    \n    Async do\n        pool.acquire\n        Async::Task.current.sleep(6)\n        pool.release\n    end\n    \n    Async do\n        begin\n            pool.acquire(5) do\n                # will not be here because of timeout\n            end\n        rescue Async::ResourcePool::TimeoutError =\u003e _\n            # will be here\n        end\n    end\n  \nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/senid231/async_resource_pool. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the AsyncResourcePool project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/async_resource_pool/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenid231%2Fasync_resource_pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenid231%2Fasync_resource_pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenid231%2Fasync_resource_pool/lists"}