{"action":"created","issue":{"url":"https://api.github.com/repos/Nicktho/batch-promises/issues/2","labels_url":"https://api.github.com/repos/Nicktho/batch-promises/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Nicktho/batch-promises/issues/2/comments","events_url":"https://api.github.com/repos/Nicktho/batch-promises/issues/2/events","html_url":"https://github.com/Nicktho/batch-promises/issues/2","id":121170508,"number":2,"title":"Elaborate more with usage example","user":{"login":"nwinch","id":1647098,"avatar_url":"https://avatars.githubusercontent.com/u/1647098?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinch","html_url":"https://github.com/nwinch","followers_url":"https://api.github.com/users/nwinch/followers","following_url":"https://api.github.com/users/nwinch/following{/other_user}","gists_url":"https://api.github.com/users/nwinch/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinch/subscriptions","organizations_url":"https://api.github.com/users/nwinch/orgs","repos_url":"https://api.github.com/users/nwinch/repos","events_url":"https://api.github.com/users/nwinch/events{/privacy}","received_events_url":"https://api.github.com/users/nwinch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T06:27:48Z","updated_at":"2015-12-09T21:50:05Z","closed_at":"2015-12-09T21:50:05Z","body":"While minor, perhaps you could elaborate a little more in the doco usage section on whether the iteratee is fired after each promise in the array, or each batch.\r\n\r\nAlso with the example it doesn't depict that the batching process is in effect.  Perhaps, if a `setTimeout` is to be used then you could add some time comments, like:\r\n```\r\n// batchPromises(2, [1, 2, 3, 4, 5])\r\n\r\n// Time: 100ms = 1, 2 (first batch of 2)\r\n// Time: 200ms = 3, 4 (second batch of 2)\r\n// Time: 300ms = 5 (last remaining batch)\r\n// result [1, 2, 3, 4, 5]\r\n```\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/Nicktho/batch-promises/issues/comments/163405230","html_url":"https://github.com/Nicktho/batch-promises/issues/2#issuecomment-163405230","issue_url":"https://api.github.com/repos/Nicktho/batch-promises/issues/2","id":163405230,"user":{"login":"Nicktho","id":8622243,"avatar_url":"https://avatars.githubusercontent.com/u/8622243?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicktho","html_url":"https://github.com/Nicktho","followers_url":"https://api.github.com/users/Nicktho/followers","following_url":"https://api.github.com/users/Nicktho/following{/other_user}","gists_url":"https://api.github.com/users/Nicktho/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicktho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicktho/subscriptions","organizations_url":"https://api.github.com/users/Nicktho/orgs","repos_url":"https://api.github.com/users/Nicktho/repos","events_url":"https://api.github.com/users/Nicktho/events{/privacy}","received_events_url":"https://api.github.com/users/Nicktho/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:50:05Z","updated_at":"2015-12-09T21:50:05Z","body":"Fixed with https://github.com/Nicktho/batch-promises/pull/4"}}