-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
[rxjava-android] OperationObserveFromAndroidComponent #458
[rxjava-android] OperationObserveFromAndroidComponent #458
Conversation
We decided it's better to leave it to the caller when it's appropriate to release, cf. #1
We decided it's sufficient for the callback to be safe as long as the caller unsubscribes in onDestroy
RxJava-pull-requests #377 FAILURE |
The build failed with an OOM while compiling the Scala module. Might just be a configuration issue. |
Regarding CloudBees ... I've been trying to increment the memory high enough to get builds working ... still no luck. I may need to get CloudBees support to help. |
[rxjava-android] OperationObserveFromAndroidComponent
@mttkay Would it make sense, to change OnSubscribeBase<T, AndroidComponent>.isComponentValid() implementation to return !activity.isFinishing() in case of an Activity? I can send a pull request if you confirm. |
Hi, we used to have this but decided it doesn't make sense. You might find more IIRC the reason was that since the client needs to unsubscribe in On Mon, Nov 4, 2013 at 11:45 AM, Vörös Gyula [email protected]:
|
…-operator [rxjava-android] OperationObserveFromAndroidComponent
This is in reference to https://github.com/soundcloud/RxJava/issues/1
Android applications can use this operator to safely observe a source sequence on the main user interface thread. As long as the subscription is unsubscribed from in
onDestroy
oronDetach
, no resource leaks will occur.I have also added an
AndroidObservable
class which acts as an entry point for instantiating Android specific observer instances.