Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created February 29, 2020 12:03
Show Gist options
  • Save NyaGarcia/bdfc5ce07c17b98ed432d474154bf1af to your computer and use it in GitHub Desktop.
Save NyaGarcia/bdfc5ce07c17b98ed432d474154bf1af to your computer and use it in GitHub Desktop.
Manually unsubscribing from an observable subscription
pokemonSubscription = pokemon$.subscribe(pokemon => {
// Do something with pokemon
});
pokemonSubscription.unsubscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment