{"issue":{"user":{"id":470630,"login":"demian85","url":"https://api.github.com/users/demian85","avatar_url":"https://secure.gravatar.com/avatar/f29ce246704ed07c7a6453acb35daff6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f29ce246704ed07c7a6453acb35daff6"},"milestone":null,"title":"break option inside forEach","created_at":"2011-10-12T13:52:06Z","labels":[],"updated_at":"2011-12-22T20:13:36Z","state":"open","id":1887462,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/caolan/async/issues/58","body":"I think it would be nice to include a \"break\" option inside an iterator to emulate the 'break' statement used in loops.\r\nActually I created my own by sending an extra parameter to the iterator called 'break'. It can be done just by calling the callback manually but it's not so practical to create a reference to the end callback before calling async.forEach\r\nIf you think it is useful enough I can send a pull request.","number":58,"url":"https://api.github.com/repos/caolan/async/issues/58","comments":1,"assignee":null},"comment":{"user":{"id":470630,"login":"demian85","url":"https://api.github.com/users/demian85","avatar_url":"https://secure.gravatar.com/avatar/f29ce246704ed07c7a6453acb35daff6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f29ce246704ed07c7a6453acb35daff6"},"created_at":"2011-12-22T20:13:36Z","updated_at":"2011-12-22T20:13:36Z","id":3254229,"body":"Is anyone still interested in this? I just had the same problem and couldn't find my way out of the iterator!","url":"https://api.github.com/repos/caolan/async/issues/comments/3254229"},"action":"created"}