Skip to content

Documentation / @eventkit/base / retry

Function: retry()

ts
function retry<T>(strategy?): OperatorFunction<T, T>

Returns an observable that will retry a callback action according to the provided retry strategy if an error occurs.

Note: this will only retry errors that happen in subscriber callbacks. If an error occurs elsewhere (like in cleanup or in the observable's generator), that implies a cancellation and the error will be raised as normal.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
strategy?RetryStrategyThe strategy for the retry scheduler.

Returns

OperatorFunction<T, T>

Released under the MIT License.