If an error occurs, invoke notifier and when returned observable emits a value resubscribe to the source observable. If the notifier throws or returns an error/empty observable, then error/completed emission is forwarded to original subscription.
Detailed Description
Operators that help to recover from error notifications from an Observable.
If an error occurs, invoke notifier and when returned observable emits a value resubscribe to the source observable. If the notifier throws or returns an error/empty observable, then error/completed emission is forwarded to original subscription.
Parameters
notifier
callable taking a std::exception_ptr and returning observable notifying when to resubscribe
Warning
retry_when along with other re-subscribing operators needs to be carefully used with hot observables, as re-subscribing to a hot observable can have unwanted behaviors. For example, a hot observable behind a replay subject can indefinitely yield an error on each re-subscription and using retry_when on it would lead to an infinite execution.