Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active May 26, 2018 08:12
Show Gist options
  • Select an option

  • Save cartant/9f3cdbf96cd5a5e3540503068aa7a1b2 to your computer and use it in GitHub Desktop.

Select an option

Save cartant/9f3cdbf96cd5a5e3540503068aa7a1b2 to your computer and use it in GitHub Desktop.
import { combineLatest, Observable } from "rxjs";
import { takeUntil } from "rxjs/operators";
declare const a: Observable<number>;
declare const b: Observable<number>;
declare const notifier: Observable<any>;
const c = a.pipe(
o => combineLatest(o, b),
takeUntil(notifier)
).subscribe(value => console.log(value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment