{"id":15362041,"url":"https://github.com/tj/co-parallel","last_synced_at":"2025-04-15T07:30:47.767Z","repository":{"id":12920119,"uuid":"15597621","full_name":"tj/co-parallel","owner":"tj","description":"Execute thunks in parallel with concurrency support","archived":false,"fork":false,"pushed_at":"2016-12-27T10:03:21.000Z","size":218,"stargazers_count":109,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T17:21:12.262Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-03T00:46:53.000Z","updated_at":"2024-03-15T03:03:20.000Z","dependencies_parsed_at":"2022-09-10T17:40:14.569Z","dependency_job_id":null,"html_url":"https://github.com/tj/co-parallel","commit_stats":null,"previous_names":["visionmedia/co-parallel"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj","download_url":"https://codeload.github.com/tj/co-parallel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026660,"owners_count":21200484,"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-01T12:58:16.507Z","updated_at":"2025-04-15T07:30:47.500Z","avatar_url":"https://github.com/tj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# co-parallel\n\n  Parallel execution with concurrency support that maintains result ordering.\n\n## Installation\n\n```\n$ npm install co-parallel\n```\n\n## Example\n\n```js\nvar parallel = require('co-parallel');\nvar request = require('co-request');\nvar co = require('co');\n\nvar urls = [\n  'http://google.com',\n  'http://yahoo.com',\n  'http://ign.com',\n  'http://cloudup.com',\n  'http://myspace.com',\n  'http://facebook.com',\n  'http://segment.io'\n];\n\nfunction *status(url) {\n  console.log('GET %s', url);\n  return (yield request(url)).statusCode;\n}\n\nco(function *(){\n  var reqs = urls.map(status);\n  var res = yield parallel(reqs, 2);\n  console.log(res);\n})();\n```\n\n## API\n\n### parallel(thunks, [concurrency])\n\n  Execute `thunks` in parallel, with the given\n  `concurrency` defaulting to 5.\n\n# License\n\n  MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fco-parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj%2Fco-parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fco-parallel/lists"}