Skip to content

Commit 6b7a534

Browse files
authored
feat(repeat): now has configurable delay (#6640)
* feat(repeat): now has configurable delay Adds a feature to `repeat` to match the configurable API of `retry`. `repeat` can now be used in a similar manner to `repeatWhen`, only perhaps in a more developer-friendly way. - Also updates `repeat` tests to use run mode. * chore: remove unnecessary unsub in test
1 parent 5835116 commit 6b7a534

File tree

4 files changed

+421
-195
lines changed

4 files changed

+421
-195
lines changed

api_guard/dist/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export declare function reduce<V, A, S = A>(accumulator: (acc: A | S, value: V,
559559

560560
export declare function refCount<T>(): MonoTypeOperatorFunction<T>;
561561

562-
export declare function repeat<T>(count?: number): MonoTypeOperatorFunction<T>;
562+
export declare function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T>;
563563

564564
export declare function repeatWhen<T>(notifier: (notifications: Observable<void>) => Observable<any>): MonoTypeOperatorFunction<T>;
565565

api_guard/dist/types/operators/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export declare function reduce<V, A, S = A>(accumulator: (acc: A | S, value: V,
229229

230230
export declare function refCount<T>(): MonoTypeOperatorFunction<T>;
231231

232-
export declare function repeat<T>(count?: number): MonoTypeOperatorFunction<T>;
232+
export declare function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T>;
233233

234234
export declare function repeatWhen<T>(notifier: (notifications: Observable<void>) => Observable<any>): MonoTypeOperatorFunction<T>;
235235

0 commit comments

Comments
 (0)