android-subscription-leaks icon indicating copy to clipboard operation
android-subscription-leaks copied to clipboard

Clarification in comment re: cold/hot observable

Open efung opened this issue 7 years ago • 0 comments

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?

efung avatar Jun 27 '17 15:06 efung