-
Notifications
You must be signed in to change notification settings - Fork 226
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
how to do a bindUntil ? #72
Comments
Can you be more specific? If you have a traditional stream of lifecycle events, you can simulate something like a "bindUntil" by just doing something like this: myObservable
.to(new ObservableScoper<>(lifecycleEvents
.filter(...)
.firstElement())
.subscribe(); |
@h2rashee lifecycleEvents? is that a Maybe ? |
lifecycle events could be an observable, calling |
@hzsweers In my case , LifeScopeProvider is an Acitivyt and lifecycle() method returns a BehaviorSubject. myObservable
.to(new ObservableScoper<>(lifecycle()
.filter(...)
.firstElement())
.subscribe(); the BehaviorSubject call onNext() to send a lifecycleEvent in every Activity lifecycle callback method like onPause() But the filter() is not called ! |
do you have sample code? It's difficult to help from that snippet alone |
@blackberry2016 Am I missing how I'm involved in this ticket? |
@hzsweers it works. |
Corresponding events works well , but how can i do a bindUntil just like rxLife ?
The text was updated successfully, but these errors were encountered: