{"id":20931849,"url":"https://github.com/wjsc/async-functions-pool","last_synced_at":"2025-10-24T16:46:52.181Z","repository":{"id":57185578,"uuid":"142177280","full_name":"wjsc/async-functions-pool","owner":"wjsc","description":"Minimal Async Tasks Pool Manager","archived":false,"fork":false,"pushed_at":"2018-10-28T16:37:36.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T20:48:16.286Z","etag":null,"topics":["async","jobs","parallel","pool","tasks-manager"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/async-functions-pool","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/wjsc.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-07-24T15:21:40.000Z","updated_at":"2024-03-21T09:45:25.000Z","dependencies_parsed_at":"2022-09-06T04:11:19.966Z","dependency_job_id":null,"html_url":"https://github.com/wjsc/async-functions-pool","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fasync-functions-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fasync-functions-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fasync-functions-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjsc%2Fasync-functions-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wjsc","download_url":"https://codeload.github.com/wjsc/async-functions-pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225255898,"owners_count":17445423,"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":["async","jobs","parallel","pool","tasks-manager"],"created_at":"2024-11-18T21:46:03.323Z","updated_at":"2025-10-24T16:46:47.149Z","avatar_url":"https://github.com/wjsc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Current Version](https://img.shields.io/npm/v/async-functions-pool.svg)\n![NPM Minified size](https://img.shields.io/bundlephobia/min/async-functions-pool.svg)\n![Github Code Size](https://img.shields.io/github/languages/code-size/wjsc/async-functions-pool.svg)\n![Downloads/Year](https://img.shields.io/npm/dy/async-functions-pool.svg)\n![Issues](https://img.shields.io/github/issues/wjsc/async-functions-pool.svg)\n![License](https://img.shields.io/github/license/wjsc/async-functions-pool.svg)\n![Contributors](https://img.shields.io/github/contributors/wjsc/async-functions-pool.svg)\n\n[![NPM](https://nodei.co/npm/async-functions-pool.png)](https://nodei.co/npm/async-functions-pool)\n\n# async-functions-pool\nMinimal Async Tasks Pool Manager\n\n## Usage\n```\n// 1. Import module and execute it to create a pool\nconst pool = require('async-functions-pool')();\n\n// 2. Add functions to the queue. For example:\npool.add(() =\u003e fetch('http://someAPI.com/resource/1'));\npool.add(() =\u003e fetch('http://someAPI.com/resource/2'));\npool.add(() =\u003e fetch('http://someAPI.com/resource/3'));\npool.add(() =\u003e fetch('http://someAPI.com/resource/4'));\npool.add(() =\u003e fetch('http://someAPI.com/resource/5'));\npool.add(() =\u003e fetch('http://someAPI.com/resource/6'));\n\n\n// 3. Set number of parallel jobs and run!\nasync function foo(){\n  const results = await pool.run(3);\n  console.log('All jobs have finished');\n}\nfoo();\n```\n\n## FAQs\n\n- How minimal it is? 25 Lines of code and no dependencies\n- Can it run common sync functions? Yes\n- Which version of Node is required? \u003e 8.0.0 because it uses async/await\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjsc%2Fasync-functions-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwjsc%2Fasync-functions-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjsc%2Fasync-functions-pool/lists"}