Skip to content

Commit

Permalink
Rx samples: fix subscribeOn/observeOn operators usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
marwinxxii committed Dec 23, 2015
1 parent f80761c commit 4bcc21a
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 4bcc21a

Please sign in to comment.