rameshksh / angular-observer-promise-example

Created with StackBlitz ⚡️

Home Page:https://stackblitz.com/edit/angular-9nrtxu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular-9nrtxu

Edit on StackBlitz ⚡️

Instead, we can simply choose the appropriate operator based on the use case:

if we need to do things in sequence while waiting for completion, then concatMap is the right choice

for doing things in parallel, mergeMap is the best option

in case we need cancellation logic, switchMap is the way to go

for ignoring new Observables while the current one is still ongoing, exhaustMap does just that

About

Created with StackBlitz ⚡️

https://stackblitz.com/edit/angular-9nrtxu


Languages

Language:TypeScript 98.6%Language:HTML 0.8%Language:CSS 0.6%