You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varLazy=require('lazy');varlazy=newLazy;lazy.take(4).join(function(xs){console.log(xs);});// OK when there are five elements. Prints nothing when there are 4[1,2,3,4].forEach(function(x){lazy.emit('data',x);});
The text was updated successfully, but these errors were encountered:
lazy.emit('end') after the 4 'data' emits doesn't seem to help.
Frankly, I'm new to node and its conventions, and the Lazy documentation seems to assume some background knowledge.
If you don't think it's a bug, maybe you could clarify how Lazy behaves with events?
This is a modified example from the readme.txt:
The text was updated successfully, but these errors were encountered: