Skip to content

Commit 9f590cf

Browse files
committed
Use MultipleAssignmentSubscription to save an import
1 parent c694a2a commit 9f590cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/rx/Scheduler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import rx.functions.Action0;
2121
import rx.schedulers.Schedulers;
2222
import rx.subscriptions.MultipleAssignmentSubscription;
23-
import rx.subscriptions.SerialSubscription;
2423

2524
/**
2625
* A {@code Scheduler} is an object that schedules units of work. You can find common implementations of this
@@ -124,7 +123,7 @@ public void call() {
124123
}
125124
}
126125
};
127-
SerialSubscription s = new SerialSubscription();
126+
MultipleAssignmentSubscription s = new MultipleAssignmentSubscription();
128127
// Should call `mas.set` before `schedule`, or the new Subscription may replace the old one.
129128
mas.set(s);
130129
s.set(schedule(recursiveAction, initialDelay, unit));

0 commit comments

Comments
 (0)