Skip to content

Do (should) we manually have to handle Bacon.noMore inside Bacon.fromBinder? #484

Closed
@mhelvens

Description

@mhelvens

If I'm reading the Bacon.fromBinder documentation correctly, the subscribe function is responsible for checking the return value of sink, and unsubscribing when Bacon.noMore is returned.

However, this is not done in the example code. Also, I imagine Bacon.js could handle this automatically by wrapping sink under the hood and conditionally calling the provided unsubscribe function (and then making sink a no-op to ignore any subsequent calls).

Not being fluent in Coffeescript, I'm not sure whether Bacon.js already does this. If so, consider this a documentation bug report. If not, consider this a feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions