Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upreadArray stream must be used on the same `tick` #60
Comments
This comment has been minimized.
This comment has been minimized.
|
yes - most stream1 stream work like this. |
This comment has been minimized.
This comment has been minimized.
treet
commented
May 4, 2014
|
Thanks! I didn't notice that event-stream creates 0.8 streams and not 0.10 streams. Creating the stream like this makes everything work as expected:
|
treet
closed this
May 4, 2014
This comment has been minimized.
This comment has been minimized.
|
This should be in the README! Lost 30 minutes till I found this closed issue. Thank you for the info though it helped a lot! |
This comment has been minimized.
This comment has been minimized.
|
@sukima make a pull request if you like |
added a commit
to sukima/event-stream
that referenced
this issue
Nov 10, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
treet commentedMay 1, 2014
works as expected while
does not work (nothing is printed)
This happens since the contents of the array is emitted to the stream on first stream.resume in a while loop (https://github.com/dominictarr/event-stream/blob/master/index.js#L108), which means delaying the use of the stream a tick makes it unusable.
Is this intended behaviour?