caolan/async — Issue #58: break option inside forEach
Author: demian85
Created: 2011-10-12 13:52:06+00:00
State: open

I think it would be nice to include a "break" option inside an iterator to emulate the 'break' statement used in loops.
Actually 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
If you think it is useful enough I can send a pull request.