1 min readDec 16, 2018
takeUntil
will unsubscribe from the source whenever the notifying observable emits. takeWhile
will unsubscribe whenever the predicate returns a falsy value. That means that takeWhile
can only effect an unsubscription upon the source emitting a value.