import { IterableX } from '../iterablex' ; import { repeatValue } from '../repeatvalue' ; import { catchAll } from '../catcherror' ; import { MonoTypeOperatorFunction } from '../../interfaces' ; template TSource param { number } count returns { MonoTypeOperatorAsyncFunction < TSource > } export function retry < TSource > ( count = - 1 ) { return function retryOperatorFunction ( source ) : IterableX < TSource > { return catchAll < TSource > ( repeatValue < Iterable < TSource > > ( source , count ) ) ; } ; }