BACK
ReferenceexhaustAll
Reference · 63

exhaustAll

exhaustAll

rxjs.dev

Flattens the first inner and ignores new ones while it's active.

Signature

exhaustAll(): OperatorFunction, T>

What it does

Subscribes to the first inner Observable. Until it completes, all new inner Observables are dropped.

When to use

Preventing re-triggering: a submit button, login, refresh, a long-running effect.

See also

exhaustMap, switchAll, mergeAll

script.ts // TypeScript
CONSOLE · Console output
Hit Run to see the result...