Skip to content

Instantly share code, notes, and snippets.

@PirunSeng
Last active August 14, 2019 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PirunSeng/be2203f056a5a3261d81438101154741 to your computer and use it in GitHub Desktop.
Save PirunSeng/be2203f056a5a3261d81438101154741 to your computer and use it in GitHub Desktop.
Try takeUntil of RxJS operator
const notifier: Observable<any>;
const request = myService.getData();
request.pipe(
takeUntil(notifier)
).subscribe(response => console.log(response));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment