Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnield committed Dec 27, 2016
1 parent ed54e28 commit c7e84bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -308,7 +308,7 @@ Observable<ActionEvent> hotKeyPresses =
myEventModel.getRefreshRequests().add(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.
Expand Down

0 comments on commit c7e84bf

Please sign in to comment.