Closed maxharlow closed 3 years ago
Downgrading to Scramjet v4.23.2 seems to fix the problem
Thanks for the info, will check today and report back
BTW, can you check if you get to see the end
event?
Brilliant, thanks. How do I check for the end
event?
on('end', / some callback here /)
On Mon, 18 Jan 2021, 11:52 Max Harlow, notifications@github.com wrote:
Brilliant, thanks. How do I check for the end event?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/signicode/scramjet/issues/99#issuecomment-762165631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ3RBFE5GX4H3FB2SNJCX3S2QHGNANCNFSM4WFJX2CQ .
Just checked, no end event
Ok. Then it should be an easy fix.
M.
On Mon, 18 Jan 2021, 12:52 Max Harlow, notifications@github.com wrote:
Just checked, no end event
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/signicode/scramjet/issues/99#issuecomment-762200190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ3RBBOP2JQU7DM4HCC7C3S2QOGHANCNFSM4WFJX2CQ .
Max, I've found a fix, but I do need to investigate a bit and clean up the code after all this.
I can commit to Monday, I hope this works for you.
That's great! No rush, I can use the older version for now
@maxharlow this is fixed in scramjet@4.35.11
When I use
flatMap
the stream seems to end prematurely in some circumstances. For example:I'd expect this to print out every number from 0 to 49 twice. Instead it consistently stops at 14. If I change the
flatMap
line to bex => [x]
it runs all the way through as expected. Changing it tox => [x, x, x]
makes it run through to 24.I'm using Scramjet v4.35.10 and Node v15.5.1.