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
I'm trying to get some sort of output when the tokenizer has completed. end is never dispatched for me. In addition, I can listen for finish but because process.nextTick() force the final tokenization to occur on the next NodeJS frame, the finish is dispatched right before the last token is processed.
Is there a reason that _transform and _flush use process.nextTick()?
The text was updated successfully, but these errors were encountered:
I'm giving up for now because it was becoming too much work (was running into issues with tokens that crossed the chunk size for example). Let me know if you have any time @Floby to discuss! Would really, really appreciate it.
Hey, I also had and issue with end not being dispatched, so I ended up making tokenizer2 which wraps through2 to ensure all the stream APIs all work as expected.
I'm trying to get some sort of output when the tokenizer has completed.
end
is never dispatched for me. In addition, I can listen forfinish
but because process.nextTick() force the final tokenization to occur on the next NodeJS frame, thefinish
is dispatched right before the last token is processed.Is there a reason that
_transform
and_flush
useprocess.nextTick()
?The text was updated successfully, but these errors were encountered: