Skip to content

Commit 51224dd

Browse files
committed
update doc
1 parent cf46cfa commit 51224dd

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

Readme.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,28 @@ Set an end point for a group of parallel tasks.
192192

193193

194194

195+
### flow.error( callback );
196+
197+
Error handler for in case there is any.
198+
199+
#### Arguments
200+
201+
> callback
202+
203+
type: Function
204+
desc: Error handler to break the flow.
205+
206+
#### Example code
207+
208+
var Flow = require( 'node.flow' );
209+
var flow = new Flow();
210+
211+
flow.error( function ( err ){
212+
console.log( err );
213+
});
214+
215+
216+
195217
### flow.end( callback, arg1, arg2, ... );
196218

197219
Call the tasks one after another in the stack.
@@ -343,4 +365,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
343365
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
344366
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
345367
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
346-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
368+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)