question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in documentation of Observable .retry(n)

See original GitHub issue

There 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akarnokdcommented, Apr 9, 2019

@RomanWuattier Nobody seems to work on this so you are welcome if you want.

0reactions
akarnokdcommented, Apr 12, 2019

Closing via #5458.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found