Skip to content

Commit

Permalink
feat(repeat): now has configurable delay (#6640)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
benlesh committed Dec 27, 2021
1 parent 5835116 commit 6b7a534
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 195 deletions.
2 changes: 1 addition & 1 deletion api_guard/dist/types/index.d.ts
Expand Up @@ -559,7 +559,7 @@ export declare function reduce<V, A, S = A>(accumulator: (acc: A | S, value: V,

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion api_guard/dist/types/operators/index.d.ts
Expand Up @@ -229,7 +229,7 @@ export declare function reduce<V, A, S = A>(accumulator: (acc: A | S, value: V,

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

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

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

Expand Down

0 comments on commit 6b7a534

Please sign in to comment.