Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 560 Bytes

api_streamhelper.md

File metadata and controls

15 lines (12 loc) · 560 Bytes
title layout section
StreamHelper API
default
api

A StreamHelper can be viewed as a pausable stream with some helper methods. It is not a full featured stream like in nodejs (and can't directly used as one) but the exposed methods should be enough to write the glue code with other async libraries : on('data', function), on('end', function) and on('error', function).

It starts paused, be sure to resume() it when ready.

If you are looking for an asynchronous helper without writing glue code, take a look at accumulate(function).