Nicholas Jamieson
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.

--

--

Nicholas Jamieson
Nicholas Jamieson

Written by Nicholas Jamieson

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

No responses yet