BACK
ReferencerepeatWhen
Reference · 94

repeatWhen

repeatWhen

Deprecated
rxjs.dev

Repeats source when a notifier allows it.

Signature

repeatWhen(notifier: (notifications: Observable) => ObservableInput): MonoTypeOperatorFunction

What it does

After complete it sends a signal to the notifier. When the notifier emits, source is subscribed again.

When to use

Supporting legacy code. In new code, use repeat with a delay/config.

Deprecated API

Marked deprecated in RxJS 7. In new code, use repeat({ delay }).

See also

repeat, retryWhen

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