{"action":"closed","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/652","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/652/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/652/events","html_url":"https://github.com/petkaantonov/bluebird/issues/652","id":87801504,"number":652,"title":"Promise.chunk","user":{"login":"James1x0","id":6146261,"avatar_url":"https://avatars.githubusercontent.com/u/6146261?v=3","gravatar_id":"","url":"https://api.github.com/users/James1x0","html_url":"https://github.com/James1x0","followers_url":"https://api.github.com/users/James1x0/followers","following_url":"https://api.github.com/users/James1x0/following{/other_user}","gists_url":"https://api.github.com/users/James1x0/gists{/gist_id}","starred_url":"https://api.github.com/users/James1x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/James1x0/subscriptions","organizations_url":"https://api.github.com/users/James1x0/orgs","repos_url":"https://api.github.com/users/James1x0/repos","events_url":"https://api.github.com/users/James1x0/events{/privacy}","received_events_url":"https://api.github.com/users/James1x0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-12T17:44:37Z","updated_at":"2015-06-12T17:46:25Z","closed_at":"2015-06-12T17:46:25Z","body":"It would be nice to have a alias to some sort of chunking mechanism for cpu-bound tasks that could run async up to a certain limit of ops.\r\n\r\n```javascript\r\nvar myLargeArray = [];\r\n\r\nPromise.reduce(_.chunk(myLargeArray, 10), function ( result, chunk ) {\r\n  return Promise.all(chunk).then(function ( chunkResults ) {\r\n    result.concat(chunkResults);\r\n    return result;\r\n  });\r\n}, []);\r\n```\r\n\r\nto be like:\r\n\r\n```javascript\r\nPromise.chunk([Array], [ChunkSize]).then(doSomething); \r\n```\r\n"}}