-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do (should) we manually have to handle Bacon.noMore
inside Bacon.fromBinder
?
#484
Comments
It's true that So this should be considered a documentation bug report. There's a related blog post with source code on Github. This post could be used when improving the documetation. |
OK, that's clear. Thanks! |
Would you like to PR on improving the doc btw :) Remember to see Contribution section in Readme |
Done: #485 |
If I'm reading the
Bacon.fromBinder
documentation correctly, thesubscribe
function is responsible for checking the return value ofsink
, and unsubscribing whenBacon.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 providedunsubscribe
function (and then makingsink
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.
The text was updated successfully, but these errors were encountered: