{"action":"closed","issue":{"url":"https://api.github.com/repos/DJWassink/Promise-parallel-throttle/issues/1","repository_url":"https://api.github.com/repos/DJWassink/Promise-parallel-throttle","labels_url":"https://api.github.com/repos/DJWassink/Promise-parallel-throttle/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DJWassink/Promise-parallel-throttle/issues/1/comments","events_url":"https://api.github.com/repos/DJWassink/Promise-parallel-throttle/issues/1/events","html_url":"https://github.com/DJWassink/Promise-parallel-throttle/issues/1","id":185626360,"number":1,"title":"Proposal api","user":{"login":"JBlaak","id":410113,"avatar_url":"https://avatars.githubusercontent.com/u/410113?v=3","gravatar_id":"","url":"https://api.github.com/users/JBlaak","html_url":"https://github.com/JBlaak","followers_url":"https://api.github.com/users/JBlaak/followers","following_url":"https://api.github.com/users/JBlaak/following{/other_user}","gists_url":"https://api.github.com/users/JBlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/JBlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBlaak/subscriptions","organizations_url":"https://api.github.com/users/JBlaak/orgs","repos_url":"https://api.github.com/users/JBlaak/repos","events_url":"https://api.github.com/users/JBlaak/events{/privacy}","received_events_url":"https://api.github.com/users/JBlaak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T10:08:57Z","updated_at":"2016-10-28T21:16:49Z","closed_at":"2016-10-28T21:16:49Z","body":"Current api does not allow full control on how the promises are generated, it \"magically\" inserts the parameters of the passed function, might be better to have a list of functions to be executed, e.g.:\r\n\r\n```javascript\r\nconst doReq = async (firstName, lastName) => {\r\n    return ...//something async\r\n}\r\n\r\nconst users = [\r\n    { first_name: 'Joris', last_name: 'Blaak'},\r\n    { first_name: 'Dirk-Jan', last_name: 'Wassink'}\r\n];\r\n\r\nconst queue = users.map(user => {\r\n    return () => doReq(user.first_name, user.last_name);\r\n});\r\n\r\nParallelPromiseThrottle(queue);\r\n```\r\n"}}
{"actor":{"display_login":"DJWassink"}}