{"id":16847490,"url":"https://github.com/fabiosantoscode/compatible-pool","last_synced_at":"2025-03-18T07:17:17.615Z","repository":{"id":48028749,"uuid":"155993869","full_name":"fabiosantoscode/compatible-pool","owner":"fabiosantoscode","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T04:30:21.000Z","size":253,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T00:22:21.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fabiosantoscode.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}},"created_at":"2018-11-03T15:01:57.000Z","updated_at":"2018-11-13T16:28:23.000Z","dependencies_parsed_at":"2023-01-24T15:45:46.854Z","dependency_job_id":null,"html_url":"https://github.com/fabiosantoscode/compatible-pool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2Fcompatible-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2Fcompatible-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2Fcompatible-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2Fcompatible-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiosantoscode","download_url":"https://codeload.github.com/fabiosantoscode/compatible-pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173553,"owners_count":20410300,"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":[],"created_at":"2024-10-13T13:08:08.682Z","updated_at":"2025-03-18T07:17:17.592Z","avatar_url":"https://github.com/fabiosantoscode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compatible-pool\n\n[![Build Status](https://travis-ci.org/fabiosantoscode/compatible-pool.svg?branch=master)](https://travis-ci.org/fabiosantoscode/compatible-pool) [![Coverage Status](https://coveralls.io/repos/github/fabiosantoscode/compatible-pool/badge.svg?branch=master)](https://coveralls.io/github/fabiosantoscode/compatible-pool?branch=master)\n\nRuns a map function on a set of values. The function will run on as many processors your machine has, or on `max` processes.\n\n## new Pool({ max: number, create: async () =\u003e res, destroy: res =\u003e (destroys res) })\n\n - max: maximum number of parallel processes\n - create: return your resource here as a promise\n - destroy: destroy your resource\n\n## pool.acquire() -\u003e Promise\u003cres\u003e\n\nAquire a resource from the pool. This can take longer if the maximum number of processes has been reached.\n\n## pool.release(res)\n\nRelease a resource in the pool.\n\n## pool.clear()\n\nClear everything in the pool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosantoscode%2Fcompatible-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiosantoscode%2Fcompatible-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosantoscode%2Fcompatible-pool/lists"}