Skip to content

Feeding a string into lazy --> never returns (no EOF?) #44

@holisticode

Description

@holisticode

I am feeding a string into Lazy:

myfunc = (string) ->
lazy = Lazy()
lazy.lines.map(String).skip(1).forEach (line) ->
#dothework , line by line

 lazy.emit('data', string)

This all works fantastic - but the program never terminates.
I guess it has to do that the string has no EOF?
Also adding a '\n' to the end of the string doesn't solve the issue

Am I doing something wrong, or can't this be done this way

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