The example of retryWhen is not working as expected
kimamula opened this issue · comments
Kenji Imamula commented
The second example of retryWhen
does not actually retry this._appService.getData(500)
.
I have confirmed this by inserting console.log('getData', status);
into the getData method in the StackBlitz example
https://www.learnrxjs.io/operators/error_handling/retrywhen.html
Kenji Imamula commented
The following code works.
of(true, async).pipe(
flatMap(() => this._appService.getData(500)),
retryWhen(genericRetryStrategy()),
catchError(error => of(error))
).subscribe(console.log);
Brian Troncone commented
Closing - cleaning up old issues.