June 2018
Intermediate to advanced
348 pages
8h 45m
English
In many situations, the normal sequence may be broken by a temporary failure on the producer end. In such scenarios, it is worthwhile to have an option to wait until the anomalies are fixed at the producer end, to continue the normal execution flow. RxCpp gives the users a very similar option to retry when an error occurs. The retry option is best suited to when you are expecting the sequence to encounter predictable issues.
The retry Operator responds to an on_error notification from the source Observable by resubscribing to the source Observable, instead of passing that call through to its Observers. This gives the source another opportunity to complete its sequence without an error. The retry always passes
Read now
Unlock full access