Skip to content

Commit

Permalink
Merge pull request #1656 from zsxwing/fix-takeUntil
Browse files Browse the repository at this point in the history
Make TakeUntil obey Rx contract
  • Loading branch information
benjchristensen committed Sep 5, 2014
2 parents 24ce690 + 5224d7d commit a8ff607
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import rx.Observable;
import rx.Observable.Operator;
import rx.Subscriber;
import rx.observers.SerializedSubscriber;

/**
* Returns an Observable that emits the items from the source Observable until another Observable
Expand All @@ -35,7 +36,7 @@ public OperatorTakeUntil(final Observable<? extends E> other) {

@Override
public Subscriber<? super T> call(final Subscriber<? super T> child) {
final Subscriber<T> parent = new Subscriber<T>(child) {
final Subscriber<T> parent = new SerializedSubscriber<T>(child) {

@Override
public void onCompleted() {
Expand Down

0 comments on commit a8ff607

Please sign in to comment.