Skip to content

Commit

Permalink
Merge pull request #123 from marwinxxii/master
Browse files Browse the repository at this point in the history
Rx samples: fix subscribeOn/observeOn operators usage.
  • Loading branch information
orhanobut committed Jan 4, 2016
2 parents f80761c + 4bcc21a commit 990e513
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ Observable<Boolean> result = Hawk.putObservable(key, T); // Returns the result a
example usage
```java
Hawk.putObservable(KEY, new Foo())
.observeOn(Schedulers.io())
.subscribeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<Boolean>() {
@Override
public void onCompleted() {
Expand Down Expand Up @@ -153,8 +153,8 @@ Observable<T> result = Hawk.getObservable(key, T);
example usage
```java
Hawk.<Foo>getObservable(KEY)
.observeOn(Schedulers.io())
.subscribeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.computation())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<Foo>() {
@Override
public void onCompleted() {
Expand Down

0 comments on commit 990e513

Please sign in to comment.