Skip to content

Instantly share code, notes, and snippets.

@cartant
Created April 1, 2019 20:54
Show Gist options
  • Save cartant/1c51872ce81bc88369ac3988139d7a6f to your computer and use it in GitHub Desktop.
Save cartant/1c51872ce81bc88369ac3988139d7a6f to your computer and use it in GitHub Desktop.
call(subscriber: Subscriber<R>, source: Observable<any>) {
const { selector } = this;
const subject = this.subjectFactory();
const subscription = selector(subject).subscribe(subscriber);
subscription.add(source.subscribe(subject));
return subscription;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment