Closed
Description
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
Labels
No labels