Skip to content

Commit

Permalink
docs(delayWhen): Deprecate completion of notifier triggering source e…
Browse files Browse the repository at this point in the history
…mission

This deprecates the behavior that the completion of the notifier observable will cause the source
emission to be emitted on the output observable.
  • Loading branch information
Airblader committed May 21, 2018
1 parent d140498 commit e66f393
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/internal/operators/delayWhen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { Subscription } from '../Subscription';
import { OuterSubscriber } from '../OuterSubscriber';
import { InnerSubscriber } from '../InnerSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
import { MonoTypeOperatorFunction, TeardownLogic, ObservableInput } from '../types';

/** @deprecated In future versions, empty notifiers will no longer re-emit the source value on the output observable. */
export function delayWhen<T>(notifier: (value: T) => ObservableInput<never>);

/**
* Delays the emission of items from the source Observable by a given time span
Expand All @@ -22,6 +25,8 @@ import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
* argument, and should return an Observable, called the "duration" Observable.
* The source value is emitted on the output Observable only when the duration
* Observable emits a value or completes.
* The completion of the notifier triggering the emission of the source value
* is deprecated behavior and will be removed in future versions.
*
* Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which
* is an Observable. When `subscriptionDelay` emits its first value or
Expand Down

0 comments on commit e66f393

Please sign in to comment.