android-subscription-leaks
android-subscription-leaks copied to clipboard
Clarification in comment re: cold/hot observable
On Line 32:
32 // This is a hot Observable that never ends;
33 // thus LeakingActivity can never be reclaimed
34 mSubscription = Observable.interval(1, TimeUnit.SECONDS)
35 .subscribe(new Action1<Long>() {
37 @Override public void call(Long aLong) {
38 Timber.d("LeakingActivity received: " + aLong);
39 }
40 });
Shouldn't the comment say that this is a cold
Observable?