{"id":16190157,"url":"https://github.com/paulmelnikow/simpleobjectpool","last_synced_at":"2025-09-05T01:32:31.269Z","repository":{"id":8918237,"uuid":"10645405","full_name":"paulmelnikow/SimpleObjectPool","owner":"paulmelnikow","description":"Simple thread-safe object pool in Objective-C","archived":false,"fork":false,"pushed_at":"2017-03-18T03:29:36.000Z","size":753,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T13:14:37.889Z","etag":null,"topics":["factory","pool"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulmelnikow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-12T15:06:23.000Z","updated_at":"2025-04-30T06:47:43.000Z","dependencies_parsed_at":"2022-08-27T22:31:21.809Z","dependency_job_id":null,"html_url":"https://github.com/paulmelnikow/SimpleObjectPool","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/paulmelnikow/SimpleObjectPool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2FSimpleObjectPool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2FSimpleObjectPool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2FSimpleObjectPool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2FSimpleObjectPool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulmelnikow","download_url":"https://codeload.github.com/paulmelnikow/SimpleObjectPool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmelnikow%2FSimpleObjectPool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273699538,"owners_count":25152279,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":["factory","pool"],"created_at":"2024-10-10T07:38:48.441Z","updated_at":"2025-09-05T01:32:26.256Z","avatar_url":"https://github.com/paulmelnikow.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"SimpleObjectPool\n================\n\nSimple implementation of a thread-safe object pool.\n\n[![Version](https://img.shields.io/cocoapods/v/SimpleObjectPool.svg)](http://cocoapods.org/pods/SimpleObjectPool)\n[![License](https://img.shields.io/cocoapods/l/SimpleObjectPool.svg?style=flat)](http://cocoapods.org/pods/SimpleObjectPool)\n[![Platform](https://img.shields.io/cocoapods/p/SimpleObjectPool.svg?style=flat)](http://cocoapods.org/pods/SimpleObjectPool)\n[![Build](https://img.shields.io/travis/paulmelnikow/SimpleObjectPool.svg)](https://travis-ci.org/paulmelnikow/SimpleObjectPool)\n\n![Pool](https://raw.githubusercontent.com/paulmelnikow/SimpleObjectPool/assets/dogs.png)\n\n\nUsage\n-----\n\nWhen the pool is empty, it naively creates another object using the\ncreateBlock.\n\n```objc\nObjectPool *pool = [ObjectPool poolWithCreateBlock:^id(NSError **outError) {\n    NSLog(@\"Opening database connection\");\n    MyDBConnection *connection = [MyDBConnection connection]\n    if (![connection openWithError:outError])\n\t    return nil;\n    else\n \t    return connection;\n}];\n\nMyDBConnection *connection = [pool objectFromPoolWithError:nil];\n\n// do stuff with connection\n\n[pool returnObjectToPool:connection];\n```\n\n\nInstallation\n------------\n\nInstall [via CocoaPods][project].\n\n[project]: https://cocoapods.org/pods/SimpleObjectPool\n\n\nContribute\n----------\n\n- Issue Tracker: https://github.com/paulmelnikow/SimpleObjectPool/issues\n- Source Code: https://github.com/paulmelnikow/SimpleObjectPool\n\nPull requests welcome!\n\n\nSupport\n-------\n\nIf you are having issues, please let me know.\n\n\nDevelopment\n-----------\n\nThis project includes unit tests. To run them, run `pod install` inside the\n`TestProject` folder, then load the workspace and execute the test action.\n\n[httpbin]: https://httpbin.org/\n\n\nLicense\n-------\n\nThis project is licensed under the Apache license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmelnikow%2Fsimpleobjectpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulmelnikow%2Fsimpleobjectpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmelnikow%2Fsimpleobjectpool/lists"}