> For the complete documentation index, see [llms.txt](https://soufatn.gitbook.io/rxjs-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soufatn.gitbook.io/rxjs-book/summary/observable/observable_instance_methods/retry.md).

# retry

Projects each element of an observable sequence into a new form by incorporating the element's index. This is an alias for the `select` method.

## Arguments

1. `[retryCount]` *(`Number`)*:  Number of times to retry the sequence. If not provided, retry the sequence indefinitely.

## Returns

*(`Observable`)*: An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully.

## Example
