Skip to content

Commit 05cbe46

Browse files
committed
I'm getting close. observeOn() still not working though
1 parent 4b0fe49 commit 05cbe46

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/rx/schedulers/JavaFxScheduler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ public void set(Subscription s) {
134134

135135
final Timeline timer = new Timeline(new KeyFrame(Duration.millis(delay), executeOnce));
136136
executeOnce.setTimer(timer);
137-
138137
timer.play();
139138

140139
executeOnce.set(Subscriptions.create(() -> {
@@ -171,9 +170,7 @@ public Subscription schedule(final Action0 action) {
171170
}
172171

173172
// wrap for returning so it also removes it from the 'innerSubscription'
174-
return Subscriptions.create(() -> {
175-
tracking.remove(s);
176-
});
173+
return Subscriptions.create(() -> tracking.remove(s));
177174
}
178175
/**
179176
* Uses a fast-path/slow path trampolining and tries to run

0 commit comments

Comments
 (0)