Skip to content

Commit

Permalink
chore(repeatWhen): further updated docs about deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymwells committed Oct 31, 2022
1 parent db3c390 commit d071508
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -163,7 +163,7 @@ export { publishLast } from './internal/operators/publishLast';
export { publishReplay } from './internal/operators/publishReplay';
export { raceWith } from './internal/operators/raceWith';
export { reduce } from './internal/operators/reduce';
export { repeat } from './internal/operators/repeat';
export { repeat, RepeatConfig } from './internal/operators/repeat';
export { repeatWhen } from './internal/operators/repeatWhen';
export { retry, RetryConfig } from './internal/operators/retry';
export { retryWhen } from './internal/operators/retryWhen';
Expand Down
3 changes: 2 additions & 1 deletion src/internal/operators/repeatWhen.ts
Expand Up @@ -38,7 +38,8 @@ import { createOperatorSubscriber } from './OperatorSubscriber';
* which a user can `complete` or `error`, aborting the repetition.
* @return A function that returns an `ObservableInput` that mirrors the source
* Observable with the exception of a `complete`.
* @deprecated Will be removed in v9 or v10. Use {@link repeat}'s `delay` option instead.
* @deprecated Will be removed in v9 or v10. Use {@link repeat}'s {@link RepeatConfig#delay delay} option instead.
* Instead of `repeatWhen(() => notify$)`, use: `repeat({ delay: notify$ })`.
*/
export function repeatWhen<T>(notifier: (notifications: Observable<void>) => ObservableInput<any>): MonoTypeOperatorFunction<T> {
return operate((source, subscriber) => {
Expand Down
2 changes: 1 addition & 1 deletion src/operators/index.ts
Expand Up @@ -68,7 +68,7 @@ export { publishReplay } from '../internal/operators/publishReplay';
export { race } from '../internal/operators/race';
export { raceWith } from '../internal/operators/raceWith';
export { reduce } from '../internal/operators/reduce';
export { repeat } from '../internal/operators/repeat';
export { repeat, RepeatConfig } from '../internal/operators/repeat';
export { repeatWhen } from '../internal/operators/repeatWhen';
export { retry, RetryConfig } from '../internal/operators/retry';
export { retryWhen } from '../internal/operators/retryWhen';
Expand Down

0 comments on commit d071508

Please sign in to comment.