UNPKG

rafa

Version:

Rafa.js is a Javascript framework for building concurrent applications.

19 lines (13 loc) 385 B
Return a new child stream that handles all values (non-errors) that pass through the stream. Return values from the handler function have to affect on values sent to child streams (cannot be transformed). <aside> ```js // # each(unit: A => undefined): Stream var stream = Rafa.stream(); var value = null; stream.each(v => value = v); stream.write(23); // value: 23; ``` </aside>