Oct 18, 2021
This is a good pattern until it bites you. If you look closely, he is using Subscription.add(). You can add subscriptions to another subscription and only have to unsubscribe from one subscription. I have used the takeUntil pattern in the past. I prefer to use a single subscription now.