I want to unsubscribe from an observable by using another observable source.
stop$: Subject<boolean> = new Subject<boolean>();
source: Subject<string> = new Subject<string>();
this.source.pipe(takeWhile(this.stop$ === false)).subscribe()
Can I do that with takeWhile operator ?