Skip to content

finish dispatched before completion #10

@joshjung

Description

@joshjung

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()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions