Browse files


  • Loading branch information...
1 parent ed54e28 commit c7e84bf8362252bc97809e9587b3a124a4cb5b69 @thomasnield thomasnield committed on GitHub Dec 27, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -308,7 +308,7 @@ Observable<ActionEvent> hotKeyPresses =
//subscribe to refresh events
-myEventModel.getRefreshRequests().subscribe(ae -> refresh());
+myEventModel.getRefreshRequests().toObservable().subscribe(ae -> refresh());
The `add()` method on a `CompositeObservable` returns a subscription which you can `unsubscribe()`, and this will affect all existing downstream Subscribers. For UI development, this is good because there is no sensitivity to the order of adding Observables and subscribing.

0 comments on commit c7e84bf

Please sign in to comment.