Error in documentation of Observable .retry(n)
See original GitHub issueThere appears to be an error in the 2.x Javadoc for the retry( n )
operator of Observable
. n
is referred to as “number of retry attempts before failing” but the accompanying marble diagram shows only a single retry when retry(2)
is called.
Does n
indicate the total number of subscriptions including the first one?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
retry - Learn RxJS
Retry an observable sequence a specific number of times should an error occur. Useful for retrying HTTP requests! If you only want to...
Read more >Rxjs Retry with Delay function - angular - Stack Overflow
RxJS provides retry operator that resubscribes the Observable for the given number of count when there is an error.
Read more >Retry operator - ReactiveX
The Retry operator responds to an onError notification from the source Observable by not passing that call through to its observers, but instead...
Read more >Retry does not work on an observable created using the Start ...
Not a bug. Start returns a hot observable, so operators like Retry won't have an effect on it. It's pretty much the same...
Read more >Chapter 7. Error handling with RxJS - RxJS in Action
Rx.Observable.of(2,4,5,8,10) .map(num => { if(num % 2 !== 0) { throw new Error(`Unexpected odd number: ${num}`); } return num; }) .retry(3) 1 .subscribe(...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RomanWuattier Nobody seems to work on this so you are welcome if you want.
Closing via #5458.