Skip to content

Instantly share code, notes, and snippets.

@Oleg-Sulzhenko
Created January 28, 2019 11:33
Show Gist options
  • Save Oleg-Sulzhenko/5134cf476c89d310240d51c4359e8860 to your computer and use it in GitHub Desktop.
Save Oleg-Sulzhenko/5134cf476c89d310240d51c4359e8860 to your computer and use it in GitHub Desktop.
switchMap: when you want to ignore the previous emissions when there is a new emission
mergeMap: when you want to concurrently handle all the emissions
concatMap: when you want to handle the emissions one after the other as they are emitted
exhaustMap: when you want to cancel all the new emissions while processing a previous emisssion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment