@ -5,9 +5,12 @@ const simpleSink = require("@ppstreams/simple-sink");
module.exports = function collect() {
let results = [];
return simpleSink((value) => {
return simpleSink({
results.push(value);
onResult: (value) => {
return results;
},
onEnd: () => {
}
});
};